@sentry/junior 0.294.0 → 0.296.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 (79) hide show
  1. package/dist/{admin-vt8aSiCD.js → admin-z_lgDi-z.js} +2 -2
  2. package/dist/{agent-runner-DJu7w6mI.js → agent-runner-HoQiUKLL.js} +318 -199
  3. package/dist/api/schema.d.ts +2 -2
  4. package/dist/api/schema.js +5 -5
  5. package/dist/api.d.ts +1 -1
  6. package/dist/api.js +321 -331
  7. package/dist/{app--a5RLOrr.d.ts → app-C75Ft-A_.d.ts} +3 -3
  8. package/dist/app.d.ts +2 -2
  9. package/dist/app.js +33 -34
  10. package/dist/{automation-BM-OBsKW.js → automation-yJX3C7i3.js} +3 -3
  11. package/dist/{background-compaction-queue-D2j-0XkH.js → background-compaction-queue-Cre1wFt9.js} +7 -9
  12. package/dist/{briefs-JOAoCb6d.js → briefs-BXECHduJ.js} +3 -3
  13. package/dist/{catalog-runtime-CLMA9AXd.js → catalog-runtime-CpCmlD9L.js} +1 -1
  14. package/dist/cli/chat.d.ts +1 -1
  15. package/dist/cli/chat.js +15 -15
  16. package/dist/cli/check.js +3 -3
  17. package/dist/cli/init.js +2 -0
  18. package/dist/cli/main.js +3 -3
  19. package/dist/cli/plugins.d.ts +1 -1
  20. package/dist/cli/plugins.js +4 -4
  21. package/dist/cli/snapshot-create.js +4 -4
  22. package/dist/cli/upgrade.d.ts +2 -2
  23. package/dist/cli/upgrade.js +3 -3
  24. package/dist/{config-mIZeGEWv.js → config-CCPHvTqx.js} +59 -2
  25. package/dist/{connections-XhdVg7OR.js → connections-B5pWh8e2.js} +6 -6
  26. package/dist/{conversation-CDWejM4R.js → conversation-CMkSmi02.js} +2 -11
  27. package/dist/{conversation-pending-messages-Dh2tfbaw.js → conversation-feed-BVAOga0H.js} +27 -2
  28. package/dist/{conversation-privacy-C6h-X2cZ.js → conversation-privacy-CZD5soDW.js} +1 -1
  29. package/dist/{credential-sync-zigBlXS3.js → credential-sync-DwLkIvXI.js} +16 -15
  30. package/dist/{db-DV5AbcGM.d.ts → db-B3iyr_Or.d.ts} +6 -1
  31. package/dist/{db--xuNV7g6.js → db-C1M1y-bh.js} +64 -26
  32. package/dist/{executor-BItuRqAR.js → executor-DUSEwXaO.js} +16 -5
  33. package/dist/instrumentation.js +19 -2
  34. package/dist/{logging-Cb6MGvdt.js → logging-D0svFM8r.js} +2 -1
  35. package/dist/{message-BTGgSmaH.js → message-BFnIwKpx.js} +9 -9
  36. package/dist/nitro.d.ts +2 -2
  37. package/dist/nitro.js +2 -2
  38. package/dist/{oauth-callback-server-Dvh1aOIi.js → oauth-callback-server-BXRtD6Fk.js} +2 -2
  39. package/dist/{oauth-relay-D6xxVywK.js → oauth-relay-CsfIazeF.js} +2 -1
  40. package/dist/{plugins-DtmjkTza.d.ts → plugins-B_0Cr0MO.d.ts} +0 -1
  41. package/dist/{projection-DLQgfO5N.js → projection-B6VS7kbo.js} +386 -108
  42. package/dist/{prompt-qp_LdxLX.js → prompt-CD11tfG8.js} +4 -4
  43. package/dist/{registry-MtwokaqW.js → registry-CHewwYEo.js} +3 -13
  44. package/dist/{resolve-BnJA0UNE.js → resolve-1owMH4qo.js} +3 -3
  45. package/dist/{result-ChL-1KyW.js → result-CEqQFrEf.js} +8 -8
  46. package/dist/{runner-BONN7Dp2.js → runner-BtWvJslp.js} +8 -8
  47. package/dist/{sandbox-egress-signals-nmlmI5Ab.js → sandbox-egress-signals-ByftwJVt.js} +1 -1
  48. package/dist/{schema-DgvcyJ1y.d.ts → schema-Ct1Zf2xy.d.ts} +66 -14
  49. package/dist/{schema-yr0ccDni.js → schema-D2iGyYIp.js} +24 -6
  50. package/dist/secrets-DebYU866.js +18 -0
  51. package/dist/{service-account-Bd0lBaGr.js → service-account-BZEuMKdo.js} +3 -3
  52. package/dist/{service-account-kio5nXSD.js → service-account-DLoeoHww.js} +42 -26
  53. package/dist/{session-stop-CeCXL3j9.js → session-stop-hYNTNpVf.js} +23 -778
  54. package/dist/{skills-e3DDNlKO.js → skills-DXgd5Inh.js} +3 -3
  55. package/dist/{spawn--cRxITWQ.js → spawn-YeqlNDv8.js} +5 -5
  56. package/dist/{adapter-DxLhJEnO.js → state-C3CbtD_m.js} +132 -2
  57. package/dist/{stop-Iai5N2PU.js → stop-Cze_pEL8.js} +351 -255
  58. package/dist/{store-C8LsaJwS.js → store-CZ9vqR4P.js} +3 -3
  59. package/dist/{task-runner-Dw7exu0-.js → task-runner-CMiNGsER.js} +275 -251
  60. package/dist/{turn-failure-response-BqTTx3XG.js → turn-failure-response-pXhZ2wMK.js} +12 -9
  61. package/dist/{validation-BrGahtnv.js → validation-Du7NdkOR.js} +1 -1
  62. package/dist/{version-Bdqhx8Qh.js → version-EN3Wnq-R.js} +1 -1
  63. package/dist/version.js +1 -1
  64. package/dist/{viewer-CjRFHR5U.js → viewer-Agxi_o5c.js} +3 -3
  65. package/dist/warmup-CY2ArYag.js +2017 -0
  66. package/dist/{work-BWBG1EGV.js → work-EA98F0ia.js} +11 -11
  67. package/dist/{worker-DAnBIVMs.js → worker-BALVdWbv.js} +6 -6
  68. package/migrations/0098_review_item_plugin_actions.sql +5 -0
  69. package/migrations/0099_conversation_last_message_at.sql +1 -0
  70. package/migrations/0100_automation_task_kind_repair.sql +48 -0
  71. package/migrations/0101_drop_legacy_columns.sql +12 -0
  72. package/migrations/meta/0098_snapshot.json +4490 -0
  73. package/migrations/meta/0099_snapshot.json +4720 -0
  74. package/migrations/meta/0100_snapshot.json +4496 -0
  75. package/migrations/meta/0101_snapshot.json +4496 -0
  76. package/migrations/meta/_journal.json +28 -0
  77. package/package.json +6 -5
  78. package/dist/assistant-reply-iTtEdDyc.js +0 -58
  79. package/dist/warmup-DuxCtzKC.js +0 -1039
@@ -1,7 +1,7 @@
1
1
  import { n as ConversationWorkQueue, t as ConversationQueueMessage } from "./queue-CZyYgPF0.js";
2
- import { t as ConversationStore } from "./db-DV5AbcGM.js";
3
- import "./schema-DgvcyJ1y.js";
4
- import { n as JuniorPluginSet } from "./plugins-DtmjkTza.js";
2
+ import { t as ConversationStore } from "./db-B3iyr_Or.js";
3
+ import "./schema-Ct1Zf2xy.js";
4
+ import { n as JuniorPluginSet } from "./plugins-B_0Cr0MO.js";
5
5
  import "./sentry-DrKC2NeM.js";
6
6
  import { Hono } from "hono";
7
7
  import "@earendil-works/pi-ai/compat";
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--a5RLOrr.js";
2
- import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-DtmjkTza.js";
1
+ import { i as JuniorDashboardOptions, n as JuniorAppOptions, r as createApp, t as JuniorApp } from "./app-C75Ft-A_.js";
2
+ import { i as defineJuniorPlugins, n as JuniorPluginSet, r as JuniorPluginSetOptions, t as JuniorPluginInput } from "./plugins-B_0Cr0MO.js";
3
3
  import { t as JUNIOR_VERSION } from "./version-Cc2OFd9G.js";
4
4
  export { JUNIOR_VERSION, JuniorApp, JuniorAppOptions, type JuniorDashboardOptions, type JuniorPluginInput, type JuniorPluginSet, type JuniorPluginSetOptions, createApp, defineJuniorPlugins };
package/dist/app.js CHANGED
@@ -1,40 +1,41 @@
1
1
  import { i as getActiveSpan, n as captureMessage, u as sentry_exports } from "./sentry-BRTJqumy.js";
2
- import { $r as verifyScheduledAutomationCredentialSubject, Aa as normalizeSandboxEgressTracePropagationDomains, Ai as isVercelSandboxEgressRequest, At as isInvalidConversationRecordError, Bn as getPlugins, C as settleConversationTitleWork, Ca as consumeSandboxEgressAuthRequiredSignal, Co as resolveRootVisibility, Dr as reviewItemReaderForUserInConversation, Ea as parseSandboxEgressCredentialToken, En as createUserTokenStore, Eo as listConversationAnnotations, Er as reviewItemReaderForUser, Fi as resolveBaseUrl, Fn as getPluginRoutes, Gn as setBriefsConfig, Gr as findMatchingWatches, Hn as validatePlugins, Ia as createPluginEmbedder, Ji as postSlackEphemeralMessage, Jr as takeDueTimerWatches, Li as escapeSlackMrkdwnText, Mn as createPluginEventPublisher, Mo as createPluginCache, Ot as hasRunnableConversationWork, Pn as getPluginApiRoutes, Pt as pruneActiveConversation, Qr as verifyEventAutomationCredentialSubject, Ri as formatSlackLink, Ro as getConfigDefaults, Sa as clearSandboxEgressSignals, Vi as slackMention, Vn as setPlugins, Vr as collectEventMatchKeys, Xa as createPluginLogger, Xr as bindScheduledAutomationCredentialSubject, Yr as bindEventAutomationCredentialSubject, Zi as unfurlSlackLinks, Zr as bindSlackDirectCredentialSubject, _ as appendConversationMessages, ai as getDashboardReviewItemLink, ar as dismissOpenReviewItems, ca as isDmChannel, ci as parseDashboardConversationLink, di as createPluginState, do as readConversationEventPageAfter, ea as slackEntitySchema, ei as verifySlackDirectCredentialSubject, eo as readConversationAccessFromSql, fa as getWorkspaceTeamId, fr as searchReviewItems, gr as canActOnReviewItem, ji as proxyVercelSandboxEgressRequest, li as setDashboardConversationLinkOptions, lo as readLatestConversationBrief, mo as readConversationMessageEventSeq, oa as getSlackClient, pa as runWithWorkspaceTeamId, po as readConversationLastEventSeq, qi as openSlackModal, ri as getDashboardConversationLink, si as getDashboardTaskLink, ta as slackExternalRefIdSchema, tr as projectConversationMessages, uo as readConversationEventPage, ut as CONVERSATION_WORK_STALE_ENQUEUE_MS, wa as consumeSandboxEgressPermissionDeniedSignal, zo as setConfigDefaults } from "./projection-DLQgfO5N.js";
3
- import { Y as getAttachmentStorage, 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-mIZeGEWv.js";
4
- import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-Cb6MGvdt.js";
5
- import { t as JUNIOR_VERSION } from "./version-Bdqhx8Qh.js";
2
+ import { $r as verifyScheduledAutomationCredentialSubject, Aa as normalizeSandboxEgressTracePropagationDomains, Ai as isVercelSandboxEgressRequest, At as isInvalidConversationRecordError, Bn as getPlugins, Bo as getConfigDefaults, C as settleConversationTitleWork, Ca as consumeSandboxEgressAuthRequiredSignal, Co as resolveRootVisibility, Dr as reviewItemReaderForUserInConversation, Ea as parseSandboxEgressCredentialToken, En as createUserTokenStore, Eo as listConversationAnnotations, Er as reviewItemReaderForUser, Fi as resolveBaseUrl, Fn as getPluginRoutes, Gn as setBriefsConfig, Gr as findMatchingWatches, Hn as validatePlugins, Ia as createPluginEmbedder, Ji as postSlackEphemeralMessage, Jr as takeDueTimerWatches, Li as escapeSlackMrkdwnText, Mn as createPluginEventPublisher, Ot as hasRunnableConversationWork, Pn as getPluginApiRoutes, Po as createPluginCache, Pt as pruneActiveConversation, Qr as verifyEventAutomationCredentialSubject, Ri as formatSlackLink, Sa as clearSandboxEgressSignals, Vi as slackMention, Vn as setPlugins, Vo as setConfigDefaults, Vr as collectEventMatchKeys, Xa as createPluginLogger, Xr as bindScheduledAutomationCredentialSubject, Yr as bindEventAutomationCredentialSubject, Zi as unfurlSlackLinks, Zr as bindSlackDirectCredentialSubject, _ as appendConversationMessages, ai as getDashboardReviewItemLink, ar as dismissOpenReviewItems, ca as isDmChannel, ci as parseDashboardConversationLink, di as createPluginState, do as readConversationEventPageAfter, ea as slackEntitySchema, ei as verifySlackDirectCredentialSubject, eo as readConversationAccessFromSql, fa as getWorkspaceTeamId, fr as searchReviewItems, gr as canActOnReviewItem, ji as proxyVercelSandboxEgressRequest, li as setDashboardConversationLinkOptions, lo as readLatestConversationBrief, mo as readConversationMessageEventSeq, oa as getSlackClient, pa as runWithWorkspaceTeamId, po as readConversationLastEventSeq, qi as openSlackModal, ri as getDashboardConversationLink, si as getDashboardTaskLink, ta as slackExternalRefIdSchema, tr as projectConversationMessages, uo as readConversationEventPage, ut as CONVERSATION_WORK_STALE_ENQUEUE_MS, wa as consumeSandboxEgressPermissionDeniedSignal } from "./projection-B6VS7kbo.js";
3
+ import { Y as getAttachmentStorage, 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-CCPHvTqx.js";
4
+ import { A as JUNIOR_CONTEXT_COMPACTION_CALLBACK_ROUTE, E as withSpan, H as GOOGLE_IDENTITY_PROVIDER, L as JUNIOR_WORKSPACE_SNAPSHOT_JOB_CALLBACK_ROUTE, O as JUNIOR_AUTO_ARCHIVE_ROUTE, P as JUNIOR_PLUGIN_TASK_CALLBACK_ROUTE, T as withLogContext, W as normalizeIdentityEmail, b as setSpanAttributes, h as logWarn, k as JUNIOR_CACHE_WARMUP_CALLBACK_ROUTE, m as logInfo, p as logException, r as createRequestContext, w as withContext } from "./logging-D0svFM8r.js";
5
+ import { t as JUNIOR_VERSION } from "./version-EN3Wnq-R.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 { E as conversationKindFromRow, M as resolveActorIdentityId, R as recordGoogleSignIn, U as getConversationIdByProviderConversation, a as getConversationStore, b as withConversationMutationLock, et as touchConversationDetail, o as getDb, p as withConversationEventLock, r as getConversationEventStore, s as getSqlExecutor, t as closeDb, tt as createSlackDestination } from "./db--xuNV7g6.js";
8
- import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-BItuRqAR.js";
9
- import { n as pluginCatalogRuntime } from "./catalog-runtime-CLMA9AXd.js";
10
- import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped, I as checkSlackChannelReadAccess, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as recordSubagentEnded, S as createSlackReviewItemShow, St as markConversationRead, U as scheduledAutomationRunAttributes, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, _ as unpublishedArtifactHeaders, at as deliverReviewItemChange, bt as archiveConversation, dn as findAutomationSkill, fn as missingAutomationSkillReason, g as readPublicArtifact, gt as collectAttachmentGarbage, h as publicArtifactHeaders, j as verifySlackSignature, k as parseSlackUserInputSubmission, ln as processWorkspaceSnapshotJob, lt as appendAndEnqueueWebMessage, mt as webActorFromUser, n as executeAgentRun, ot as renderReviewItemMessage, pt as recordWebConversationActivity, r as processBackgroundCompaction, rt as effectiveTaskOutcomes, st as reviewItemChangeRecord, t as createAgentRunner, tt as readViewerAutomations, un as ingestEvent, ut as conversationTurnIdForMessage, v as setConversationSubscription, vt as requestAttachmentDeletion, w as syncReviewItemSlackCards, y as lookupSlackUserProfile, z as joinPublicChannel } from "./agent-runner-DJu7w6mI.js";
7
+ import { B as recordGoogleSignIn, G as getConversationIdByProviderConversation, O as conversationKindFromRow, P as resolveActorIdentityId, S as withConversationMutationLock, a as getConversationStore, nt as touchConversationDetail, o as getDb, p as withConversationEventLock, r as getConversationEventStore, rt as createSlackDestination, s as getSqlExecutor, t as closeDb } from "./db-C1M1y-bh.js";
8
+ import { A as juniorConversations, N as juniorDestinations, b as juniorConversationBriefs, f as juniorAutomations, g as juniorAgentInvocations, h as juniorAgentBindings, l as juniorReviewItems, u as juniorAutomationRuns, w as juniorConversationEvents } from "./executor-DUSEwXaO.js";
9
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-CpCmlD9L.js";
10
+ import { $ as readViewerAutomationSummary, $t as resumeConversationDelivery, A as runWithSlackInstallation, C as readSlackReviewItemCardConversationId, D as parseSlackReviewItemClick, E as buildSlackReviewItemModal, H as logScheduledAutomationRunSkipped, I as checkSlackChannelReadAccess, M as parseSlackThreadId, O as parseSlackReviewItemFormTarget, Ot as recordSubagentEnded, S as createSlackReviewItemShow, St as markConversationRead, U as scheduledAutomationRunAttributes, Y as ViewerTaskNotFoundError, Z as readViewerAutomationExecutions, _ as unpublishedArtifactHeaders, at as deliverReviewItemChange, bt as archiveConversation, dn as findAutomationSkill, fn as missingAutomationSkillReason, g as readPublicArtifact, gt as collectAttachmentGarbage, h as publicArtifactHeaders, j as verifySlackSignature, k as parseSlackUserInputSubmission, ln as processWorkspaceSnapshotJob, lt as appendAndEnqueueWebMessage, mt as webActorFromUser, n as executeAgentRun, ot as renderReviewItemMessage, pt as recordWebConversationActivity, r as processBackgroundCompaction, rt as effectiveTaskOutcomes, st as reviewItemChangeRecord, t as createAgentRunner, tt as readViewerAutomations, un as ingestEvent, ut as conversationTurnIdForMessage, v as setConversationSubscription, vt as requestAttachmentDeletion, w as syncReviewItemSlackCards, y as lookupSlackUserProfile, z as joinPublicChannel } from "./agent-runner-HoQiUKLL.js";
11
11
  import { a as withLock, i as fenceLock, n as MUTATION_LOCK_TTL_MS } from "./locks-D-0h111u.js";
12
- import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-CjRFHR5U.js";
13
- import { r as getStateAdapter, t as disconnectStateAdapter } from "./adapter-DxLhJEnO.js";
12
+ import { g as createCache, i as readActorIdentity, l as resolveViewerUser, p as parseAvatarUrl } from "./viewer-Agxi_o5c.js";
13
+ import { a as getStateAdapter, r as disconnectStateAdapter } from "./state-C3CbtD_m.js";
14
14
  import { a as getNextRunAtMs } from "./schedule-cP0AACm1.js";
15
- import { F as annotationCard, Y as conversationBriefSchema, k as conversationTitleSchema, p as conversationFeedQuerySchema, x as conversationSurfaceSchema, y as conversationReportStatusSchema } from "./conversation-CDWejM4R.js";
15
+ import { J as conversationBriefSchema, O as conversationTitleSchema, P as annotationCard, b as conversationSurfaceSchema, p as conversationFeedQuerySchema, v as conversationReportStatusSchema } from "./conversation-CMkSmi02.js";
16
16
  import { t as SANDBOX_EGRESS_PROXY_PATH } from "./proxy-path-BHYoKZdq.js";
17
- import { a as segmentGapsKey, f as MINUTE_MS, g as gapSegment, m as NO_REPLY_GAP_MS, n as GLOBAL_GAPS_MAX, p as MIN_WARMUP_PREFIX_TOKENS, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS } from "./warmup-DuxCtzKC.js";
18
- import { A as getQueueProvider, C as cacheWarmupQueueConsumer, O as queueCallback, T as registerVercelCacheWarmupDevConsumer, _ as resolveConversationWorkQueueTopic, b as conversationQueueMessageSchema, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as getVercelConversationWorkQueue, h as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as verifyConversationQueueMessage, w as createVercelCacheWarmupCallback, x as isConversationQueueMessageRejectedError } from "./background-compaction-queue-D2j-0XkH.js";
19
- import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-BqTTx3XG.js";
20
- import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, it as setExperimentalFeatures, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, nt as getExperimentalFeatures, rt as isExperimentalFeatureEnabled, z as renderTaskInput } from "./session-stop-CeCXL3j9.js";
17
+ import { n as readSchedulerSecret, r as readSignInSecret } from "./secrets-DebYU866.js";
18
+ import { a as segmentGapsKey, f as MINUTE_MS, g as gapSegment, m as NO_REPLY_GAP_MS, n as GLOBAL_GAPS_MAX, p as MIN_WARMUP_PREFIX_TOKENS, r as GLOBAL_GAPS_TTL_MS, t as CONVERSATION_STATE_TTL_MS } from "./warmup-CY2ArYag.js";
19
+ import { A as getQueueProvider, C as cacheWarmupQueueConsumer, O as queueCallback, T as registerVercelCacheWarmupDevConsumer, _ as resolveConversationWorkQueueTopic, b as conversationQueueMessageSchema, f as WORKSPACE_SNAPSHOT_JOB_QUEUE_TOPIC, g as getVercelConversationWorkQueue, h as verifyWorkspaceSnapshotJobMessage, i as verifyBackgroundCompactionMessage, l as pluginTaskQueueConsumer, o as createVercelPluginTaskCallback, r as vercelBackgroundCompactionQueue, t as BACKGROUND_COMPACTION_QUEUE_TOPIC, u as registerVercelPluginTaskDevConsumer, v as verifyConversationQueueMessage, w as createVercelCacheWarmupCallback, x as isConversationQueueMessageRejectedError } from "./background-compaction-queue-Cre1wFt9.js";
20
+ import { D as listPendingAgentInvocationResults, E as listPendingAgentInvocationMailboxAppends } from "./turn-failure-response-pXhZ2wMK.js";
21
+ import { M as slackChannelMessageReplyThreadTs, N as slackChannelMessageRunsAutomation, O as getEventCatalog, W as renderSlackObjectCard, d as getAuthPausedConversationTurnId, it as setExperimentalFeatures, j as slackChannelMessageEvent, k as SLACK_EVENT_NAMESPACE, nt as getExperimentalFeatures, rt as isExperimentalFeatureEnabled, z as renderTaskInput } from "./session-stop-hYNTNpVf.js";
21
22
  import { _ as buttonUserInputField } from "./reporting-window-B3Ze-Qnt.js";
22
- import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-BnJA0UNE.js";
23
- import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-C8LsaJwS.js";
24
- import { A as withScheduledAutomationLock, E as readScheduledAutomation, F as findMatchingEventAutomations, H as eventAutomationRunLimitReason, M as collectEventAutomationMatchKeys, O as saveScheduledAutomationInLock, Q as existingConversationId, V as admitEventAutomationRun, W as automationVersionOf, c as getDispatchConversationId, d as getDispatchRecord, gt as coerceThreadConversationState, h as listPendingDispatchMailboxAppends, i as buildDispatchId, j as blockEventAutomation, k as scheduledRunId, m as isTerminalDispatchStatus, o as confirmDispatchMailboxAppend, ot as recordAutomationExecution, p as getPluginDispatchProjection, s as createOrGetDispatch, t as processPluginTask, w as listScheduledAutomationsForTeam, x as notifyAutomationBlocked, xt as eventGuidance, y as markDispatchFailed } from "./task-runner-Dw7exu0-.js";
25
- import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-BM-OBsKW.js";
26
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-BrGahtnv.js";
23
+ import { c as setSandboxResourceConfig, o as getSandboxResourceConfig } from "./resolve-1owMH4qo.js";
24
+ import { _ as listActiveConversationIds, g as getConversationWorkState, h as getConversation, l as clearExpiredConversationLease, m as ensureConversationWake, r as appendAndEnqueueInboundMessage } from "./store-CZ9vqR4P.js";
25
+ import { $ as automationVersionOf, B as blockEventAutomation, C as listPendingDispatchMailboxAppends, Ct as eventGuidance, D as markDispatchFailed, F as readScheduledAutomation, L as saveScheduledAutomationInLock, N as listScheduledAutomationsForTeam, R as scheduledRunId, S as isTerminalDispatchStatus, V as collectEventAutomationMatchKeys, W as findMatchingEventAutomations, X as admitEventAutomationRun, Z as eventAutomationRunLimitReason, d as coerceThreadConversationState, f as buildDispatchId, g as getDispatchConversationId, h as createOrGetDispatch, ht as recordAutomationExecution, k as notifyAutomationBlocked, m as confirmDispatchMailboxAppend, st as existingConversationId, t as processPluginTask, x as getPluginDispatchProjection, y as getDispatchRecord, z as withScheduledAutomationLock } from "./task-runner-CMiNGsER.js";
26
+ import { H as automationTaskSchema, N as scheduledRunSchema, U as automationTaskText, l as automationListQuerySchema, s as automationExecutionStatusSchema } from "./automation-yJX3C7i3.js";
27
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "./validation-Du7NdkOR.js";
27
28
  import { a as pluginRuntimeRegistrationsFromPluginSet, n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "./plugins-HYh_JOdw.js";
28
- import { a as conversationPendingMessageDeliverySchema } from "./conversation-pending-messages-Dh2tfbaw.js";
29
- import { $ as actOnReviewItem, A as createProductionConversationWorkOptions, B as clearSlackPendingReactions, C as createConversationForViewer, D as readConversationPendingMessages, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, G as createSlackWebApiStatusSender, H as stripLeadingBotMention, I as readEnvList, J as stopConversation, K as SubscribedReplyReason, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as ReviewItemActionError, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as recordSkippedConversationMessage, Y as parseContent, Z as bindMessageAuthorIdentityId, a as pinConversation, at as continueConversationInSlack, b as readConversationRecordFromSql, ct as archiveViewerDoneConversations, dt as setConversationAutoArchive, et as closeReviewItemsAnsweredByReply, ht as GET$4, i as readConversationFeed, it as canContinueInSlack, j as createProductionSlackWebhookServices, mt as enqueueAgentDispatch, n as steerConversationPendingMessagesForViewer, nt as reviewItemChange, ot as isMovableToSlack, q as getThreadStopDecision, rt as alreadyContinuesInSlackMessage, s as readConversationDetail, t as stopConversationTurnForViewer, tt as readReviewItemForUser, ut as runAutoArchiveSweep, w as decodeConversationCursor, z as buildSlackInboundMessage } from "./stop-Iai5N2PU.js";
30
- import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-BWBG1EGV.js";
31
- import { n as enqueueAgentInvocationResult } from "./result-ChL-1KyW.js";
32
- import { o as unlinkProvider } from "./connections-XhdVg7OR.js";
33
- import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-zigBlXS3.js";
29
+ import { s as conversationPendingMessageDeliverySchema } from "./conversation-feed-BVAOga0H.js";
30
+ import { $ as actOnReviewItem, A as createProductionConversationWorkOptions, B as clearSlackPendingReactions, C as createConversationForViewer, D as readConversationPendingMessages, E as cancelConversationPendingMessagesForViewer, F as isAllowedSignInEmail, G as createSlackWebApiStatusSender, H as stripLeadingBotMention, I as readEnvList, J as stopConversation, K as SubscribedReplyReason, L as resolveAllowedDomains, M as getProductionSlackAdapter, N as assertNoLegacyAllowedDomains, P as isAllowedDomain, Q as ReviewItemActionError, R as startProcessingReaction, S as appendConversationMessageForViewer, T as encodeConversationCursor, U as normalizeIncomingSlackThreadId, V as slackInboundMessageId, W as withNormalizedThreadId, X as recordSkippedConversationMessage, Y as parseContent, Z as bindMessageAuthorIdentityId, a as pinConversation, at as continueConversationInSlack, ct as archiveViewerDoneConversations, dt as setConversationAutoArchive, et as closeReviewItemsAnsweredByReply, ht as GET$4, i as readConversationFeed, it as canContinueInSlack, j as createProductionSlackWebhookServices, mt as enqueueAgentDispatch, n as steerConversationPendingMessagesForViewer, nt as reviewItemChange, ot as isMovableToSlack, q as getThreadStopDecision, rt as alreadyContinuesInSlackMessage, s as readConversationDetail, t as stopConversationTurnForViewer, tt as readReviewItemForUser, ut as runAutoArchiveSweep, w as decodeConversationCursor, y as readConversationRecordFromSql, z as buildSlackInboundMessage } from "./stop-Cze_pEL8.js";
31
+ import { a as enqueueAgentInvocation, i as endAgentInvocationsOfStoppedWork } from "./work-EA98F0ia.js";
32
+ import { n as enqueueAgentInvocationResult } from "./result-CEqQFrEf.js";
33
+ import { o as unlinkProvider } from "./connections-B5pWh8e2.js";
34
+ import { a as GET$5, i as publishAppHomeView, r as GET$6, t as receiveLocalOAuthCredential } from "./credential-sync-DwLkIvXI.js";
34
35
  import { t as nameRequestRoute } from "./sentry-route-name-BhwWnfqj.js";
35
- import { t as processConversationWork } from "./worker-DAnBIVMs.js";
36
- import { t as bindMessageAgent } from "./message-BTGgSmaH.js";
37
- import { t as bindSpawnAgent } from "./spawn--cRxITWQ.js";
36
+ import { t as processConversationWork } from "./worker-BALVdWbv.js";
37
+ import { t as bindMessageAgent } from "./message-BFnIwKpx.js";
38
+ import { t as bindSpawnAgent } from "./spawn-YeqlNDv8.js";
38
39
  import { createRequire } from "node:module";
39
40
  import { Hono } from "hono";
40
41
  import { createHash, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
@@ -1604,12 +1605,9 @@ async function runHeartbeat(args) {
1604
1605
  }
1605
1606
  }
1606
1607
  // src/handlers/scheduler-auth.ts
1607
- function getSchedulerSecret() {
1608
- return process.env.JUNIOR_SCHEDULER_SECRET?.trim() || process.env.CRON_SECRET?.trim();
1609
- }
1610
1608
  /** Check the bearer secret that internal cron requests must send. */
1611
1609
  function verifySchedulerRequest(request) {
1612
- const secret = getSchedulerSecret();
1610
+ const secret = readSchedulerSecret();
1613
1611
  if (!secret) return false;
1614
1612
  const authorization = request.headers.get("authorization")?.trim();
1615
1613
  if (!authorization?.startsWith("Bearer ")) return false;
@@ -7788,7 +7786,7 @@ function required(value, name) {
7788
7786
  return value.trim();
7789
7787
  }
7790
7788
  function createBetterAuth(config) {
7791
- const secret = required(config.secret ?? process.env.BETTER_AUTH_SECRET ?? process.env.JUNIOR_SECRET, "JUNIOR_SECRET or BETTER_AUTH_SECRET");
7789
+ const secret = required(config.secret ?? readSignInSecret(), "JUNIOR_SECRET or BETTER_AUTH_SECRET");
7792
7790
  const sessionMaxAgeSeconds = config.sessionMaxAgeSeconds ?? DEFAULT_SESSION_MAX_AGE_SECONDS;
7793
7791
  const { allowedDomains } = config;
7794
7792
  const hostedDomain = allowedDomains.length === 0 ? void 0 : allowedDomains.length === 1 ? allowedDomains[0] : "*";
@@ -8004,6 +8002,7 @@ function dashboardHostRoutePaths(dashboard, authenticatedRoutes = []) {
8004
8002
  "/api/automations",
8005
8003
  "/api/automations/*",
8006
8004
  "/api/skills",
8005
+ "/api/skills/*",
8007
8006
  "/api/board",
8008
8007
  "/api/code",
8009
8008
  "/api/code/*",
@@ -1,5 +1,5 @@
1
1
  import { c as resolveLocalScheduleAtMs, i as getFirstRunAtMs, o as getZonedDateTimeParts, s as isValidTimeZone } from "./schedule-cP0AACm1.js";
2
- import { i as actorIdentitySchema } from "./conversation-CDWejM4R.js";
2
+ import { i as actorIdentitySchema } from "./conversation-CMkSmi02.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/automations/task.ts
@@ -437,9 +437,9 @@ const automationTitleSchema = z.string().trim().min(1).max(60);
437
437
  * instruction names exact targets. It calls the creator "the Automation
438
438
  * creator". It names every other person with their mention.
439
439
  */
440
- const automationInstructionToolSchema = automationTaskTextSchema.describe("Work to perform when the Automation runs. The run does not see this conversation, so words like \"this channel\" or \"here\" will mean nothing then. Write the exact target instead, such as a channel mention or a link. Call the person who created the Automation \"the Automation creator\", not \"me\"; each run knows who that is. Name every other person with their Slack mention, such as <@U123>, including a requester who did not create the Automation. Preserve the user's scope, targets, and constraints. Do not add permissions or side effects the user did not request.");
440
+ const automationInstructionToolSchema = automationTaskTextSchema.describe("Work to perform when the Automation runs. Say what to do, what to post, and when to post nothing. Do not say where to post: the outcomes set that, a run triggered by a Slack message replies in its thread, and each run ends with one message at most. The run does not see this conversation, so words like \"this channel\" or \"here\" will mean nothing then. Where the run reads or changes something, write the exact target, such as a channel mention, a repo, or a link. Call the person who created the Automation \"the Automation creator\", not \"me\"; each run knows who that is. Name every other person with their Slack mention, such as <@U123>, including a requester who did not create the Automation. Preserve the user's scope, targets, and constraints. Do not add permissions or side effects the user did not request.");
441
441
  /** Context input for agent tools. It follows the same rules as an instruction. */
442
- const automationContextToolSchema = automationTaskTextSchema.describe("What a skill run needs beyond the skill, such as a repo, a threshold, or who to tag. Follow the same rules as an instruction: write exact targets, call the creator \"the Automation creator\", and name other people with their Slack mention.");
442
+ const automationContextToolSchema = automationTaskTextSchema.describe("What a skill run needs beyond the skill, such as a repo, a threshold, or who to tag. Leave out what the skill already says. Follow the same rules as an instruction: do not say where to post, write exact targets, call the creator \"the Automation creator\", and name other people with their Slack mention.");
443
443
  const automationEditFieldsSchema = z.object({
444
444
  title: automationTitleSchema.optional(),
445
445
  /** Replaces the whole task, so a mode switch drops the other mode's text. */
@@ -1,5 +1,6 @@
1
- import { i as getChatConfig } from "./config-mIZeGEWv.js";
2
- import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-Cb6MGvdt.js";
1
+ import { i as getChatConfig } from "./config-CCPHvTqx.js";
2
+ import { E as withSpan, h as logWarn, m as logInfo, p as logException } from "./logging-D0svFM8r.js";
3
+ import { t as readJuniorSecret } from "./secrets-DebYU866.js";
3
4
  import { AsyncLocalStorage } from "node:async_hooks";
4
5
  import { createHash, createHmac, timingSafeEqual } from "node:crypto";
5
6
  import * as z from "zod";
@@ -237,9 +238,6 @@ function queueCallback(options) {
237
238
  // src/chat/queue/sign.ts
238
239
  /** Sign and check queue messages before public callbacks run them. */
239
240
  const QUEUE_SIGNATURE_MAX_AGE_MS = 36e5;
240
- function secret() {
241
- return process.env.JUNIOR_SECRET?.trim() || void 0;
242
- }
243
241
  function digest(args) {
244
242
  return createHmac("sha256", args.secret).update([
245
243
  args.context,
@@ -258,7 +256,7 @@ function body(value) {
258
256
  }
259
257
  /** Sign one queue message. */
260
258
  function signQueueMessage(config, message, nowMs = Date.now()) {
261
- const key = secret();
259
+ const key = readJuniorSecret();
262
260
  if (!key) throw new Error("Cannot sign queue message without JUNIOR_SECRET");
263
261
  if (!Number.isFinite(nowMs)) throw new Error("Cannot sign queue message with an invalid clock");
264
262
  const separator = config.separator ?? "\0";
@@ -291,7 +289,7 @@ function verifyQueueMessage(config, value, nowMs = Date.now()) {
291
289
  status: "rejected",
292
290
  reason: "malformed"
293
291
  };
294
- const key = secret();
292
+ const key = readJuniorSecret();
295
293
  if (!key) return {
296
294
  status: "unavailable",
297
295
  reason: "missing_secret"
@@ -371,7 +369,7 @@ function cacheWarmupCallback() {
371
369
  maxDeliveries: 1,
372
370
  onRejected: logCacheWarmupRejected,
373
371
  run: async (message) => {
374
- const { runCacheWarmup } = await import("./warmup-DuxCtzKC.js").then((n) => n.o);
372
+ const { runCacheWarmup } = await import("./warmup-CY2ArYag.js").then((n) => n.o);
375
373
  await runCacheWarmup(message);
376
374
  },
377
375
  skip: () => !getChatConfig().cacheWarmingEnabled,
@@ -560,7 +558,7 @@ function pluginTaskCallback() {
560
558
  maxDeliveries: PLUGIN_TASK_MAX_DELIVERIES,
561
559
  onRejected: logPluginTaskQueueMessageRejected,
562
560
  run: async (message) => {
563
- const { processPluginTask } = await import("./task-runner-Dw7exu0-.js").then((n) => n.r);
561
+ const { processPluginTask } = await import("./task-runner-CMiNGsER.js").then((n) => n.r);
564
562
  await processPluginTask(message);
565
563
  },
566
564
  topic: PLUGIN_TASK_QUEUE_TOPIC,
@@ -1,5 +1,5 @@
1
- import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-qp_LdxLX.js";
2
- import { G as briefCodeChangeSchema, J as briefResourceLabel, X as parseBriefInput, d as conversationEventPageSchema, l as conversationDetailReportSchema } from "./conversation-CDWejM4R.js";
1
+ import { l as completeObject, n as briefEntriesFromReportEvents, s as generateBrief, t as BRIEF_PROMPT } from "./prompt-CD11tfG8.js";
2
+ import { W as briefCodeChangeSchema, Y as parseBriefInput, d as conversationEventPageSchema, l as conversationDetailReportSchema, q as briefResourceLabel } from "./conversation-CMkSmi02.js";
3
3
  import { CLI_USAGE } from "./cli/run.js";
4
4
  import path from "node:path";
5
5
  import * as z from "zod";
@@ -262,7 +262,7 @@ async function parseRunOptions(argv) {
262
262
  * token.
263
263
  */
264
264
  async function configuredBriefModelId() {
265
- const { botConfig } = await import("./config-mIZeGEWv.js").then((n) => n.r);
265
+ const { botConfig } = await import("./config-CCPHvTqx.js").then((n) => n.r);
266
266
  return botConfig.fastModelId;
267
267
  }
268
268
  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-MtwokaqW.js";
2
+ import { t as createPluginCatalogRuntime } from "./registry-CHewwYEo.js";
3
3
  // src/chat/plugins/catalog-runtime.ts
4
4
  var catalog_runtime_exports = /* @__PURE__ */ __exportAll({ pluginCatalogRuntime: () => pluginCatalogRuntime });
5
5
  const pluginCatalogRuntime = createPluginCatalogRuntime();
@@ -1,4 +1,4 @@
1
- import { n as JuniorPluginSet } from "../plugins-DtmjkTza.js";
1
+ import { n as JuniorPluginSet } from "../plugins-B_0Cr0MO.js";
2
2
  export declare const CHAT_USAGE = "usage: junior chat\n junior chat -p <message>";
3
3
  export type ChatCommandOptions = {
4
4
  mode: "interactive";
package/dist/cli/chat.js CHANGED
@@ -1,4 +1,4 @@
1
- import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-DJu7w6mI.js";
1
+ import { n as executeAgentRun, t as createAgentRunner } from "../agent-runner-HoQiUKLL.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-DLQgfO5N.js").then((n) => n.jn),
103
- import("../catalog-runtime-CLMA9AXd.js").then((n) => n.t),
104
- import("../validation-BrGahtnv.js").then((n) => n.r),
105
- import("../db--xuNV7g6.js").then((n) => n.n)
102
+ import("../projection-B6VS7kbo.js").then((n) => n.jn),
103
+ import("../catalog-runtime-CpCmlD9L.js").then((n) => n.t),
104
+ import("../validation-Du7NdkOR.js").then((n) => n.r),
105
+ import("../db-C1M1y-bh.js").then((n) => n.n)
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-DLQgfO5N.js").then((n) => n.Wn);
155
+ const { setBriefsConfig } = await import("../projection-B6VS7kbo.js").then((n) => n.Wn);
156
156
  setBriefsConfig({ enabled: true });
157
- const { runLocalAgentTurn } = await import("../runner-BONN7Dp2.js");
158
- const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-Dvh1aOIi.js");
159
- const { createLocalOAuthState } = await import("../oauth-relay-D6xxVywK.js").then((n) => n.t);
160
- const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-nmlmI5Ab.js");
161
- const { bindSpawnAgent } = await import("../spawn--cRxITWQ.js").then((n) => n.n);
162
- const { bindMessageAgent } = await import("../message-BTGgSmaH.js").then((n) => n.n);
163
- const { createChildConversationWorker } = await import("../result-ChL-1KyW.js").then((n) => n.i);
164
- const { skipInputAfterConversationStop } = await import("../session-stop-CeCXL3j9.js").then((n) => n.a);
157
+ const { runLocalAgentTurn } = await import("../runner-BtWvJslp.js");
158
+ const { startLocalOAuthCallbackServer } = await import("../oauth-callback-server-BXRtD6Fk.js");
159
+ const { createLocalOAuthState } = await import("../oauth-relay-CsfIazeF.js").then((n) => n.t);
160
+ const { createLocalSandboxEgressSignalTransport } = await import("../sandbox-egress-signals-ByftwJVt.js");
161
+ const { bindSpawnAgent } = await import("../spawn-YeqlNDv8.js").then((n) => n.n);
162
+ const { bindMessageAgent } = await import("../message-BFnIwKpx.js").then((n) => n.n);
163
+ const { createChildConversationWorker } = await import("../result-CEqQFrEf.js").then((n) => n.i);
164
+ const { skipInputAfterConversationStop } = await import("../session-stop-hYNTNpVf.js").then((n) => n.a);
165
165
  const { createLocalConversationWork } = await import("../conversation-work-BaT_T6EB.js");
166
- const { processConversationWork } = await import("../worker-DAnBIVMs.js").then((n) => n.n);
166
+ const { processConversationWork } = await import("../worker-BALVdWbv.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 { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-Cb6MGvdt.js";
2
- import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-MtwokaqW.js";
3
- import { i as parseSkillFile } from "../skills-e3DDNlKO.js";
1
+ import { N as JUNIOR_HEARTBEAT_ROUTE, R as LEGACY_JUNIOR_CONVERSATION_WORK_FUNCTION, j as JUNIOR_CONVERSATION_WORK_CALLBACK_ROUTE } from "../logging-D0svFM8r.js";
2
+ import { v as parseInlinePluginManifest, y as parsePluginManifest } from "../registry-CHewwYEo.js";
3
+ import { i as parseSkillFile } from "../skills-DXgd5Inh.js";
4
4
  import path from "node:path";
5
5
  import fs from "node:fs/promises";
6
6
  import { pathToFileURL } from "node:url";
package/dist/cli/init.js CHANGED
@@ -158,6 +158,8 @@ async function runInit(dir, log = console.log) {
158
158
  fs.writeFileSync(path.join(target, ".env.example"), `SLACK_BOT_TOKEN=
159
159
  SLACK_SIGNING_SECRET=
160
160
  JUNIOR_SECRET=
161
+ JUNIOR_ENCRYPTION_KEYS=
162
+ JUNIOR_ENCRYPTION_KEY_ID=
161
163
  JUNIOR_BOT_NAME=
162
164
  AI_MODEL=
163
165
  AI_FAST_MODEL=
package/dist/cli/main.js CHANGED
@@ -45,13 +45,13 @@ async function runChat(argv, pluginSet) {
45
45
  return await (await import("./chat.js")).runChat(argv, void 0, { pluginSet });
46
46
  }
47
47
  async function runAdmin(argv) {
48
- return await (await import("../admin-vt8aSiCD.js")).runAdmin(argv);
48
+ return await (await import("../admin-z_lgDi-z.js")).runAdmin(argv);
49
49
  }
50
50
  async function runServiceAccount(argv) {
51
- return await (await import("../service-account-Bd0lBaGr.js")).runServiceAccount(argv);
51
+ return await (await import("../service-account-BZEuMKdo.js")).runServiceAccount(argv);
52
52
  }
53
53
  async function runBriefs(argv) {
54
- return await (await import("../briefs-JOAoCb6d.js")).runBriefs(argv);
54
+ return await (await import("../briefs-BXECHduJ.js")).runBriefs(argv);
55
55
  }
56
56
  function topLevelCommand(argv) {
57
57
  return (argv[0] === "--" ? argv.slice(1) : argv)[0];
@@ -1,4 +1,4 @@
1
- import { n as JuniorPluginSet } from "../plugins-DtmjkTza.js";
1
+ import { n as JuniorPluginSet } from "../plugins-B_0Cr0MO.js";
2
2
  import { PluginCliIo } from "@sentry/junior-plugin-api";
3
3
  export type PluginCommandIo = PluginCliIo;
4
4
  export interface CliPluginCommandDispatcher {
@@ -1,7 +1,7 @@
1
- import { Hn as validatePlugins, Vn as setPlugins, Xa as createPluginLogger } from "../projection-DLQgfO5N.js";
2
- import { o as getDb } from "../db--xuNV7g6.js";
3
- import { n as pluginCatalogRuntime } from "../catalog-runtime-CLMA9AXd.js";
4
- import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-BrGahtnv.js";
1
+ import { Hn as validatePlugins, Vn as setPlugins, Xa as createPluginLogger } from "../projection-B6VS7kbo.js";
2
+ import { o as getDb } from "../db-C1M1y-bh.js";
3
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-CpCmlD9L.js";
4
+ import { n as validatePluginRegistrations, t as validatePluginEgressCredentialHooks } from "../validation-Du7NdkOR.js";
5
5
  import { a as pluginRuntimeRegistrationsFromPluginSet, i as pluginCliRegistrationsFromPluginSet, r as pluginCatalogConfigFromPluginSet } from "../plugins-HYh_JOdw.js";
6
6
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
7
7
  import { stderr, stdout } from "node:process";
@@ -1,7 +1,7 @@
1
- import { Ti as create, ja as SANDBOX_RUNTIME } from "../projection-DLQgfO5N.js";
2
- import { n as pluginCatalogRuntime } from "../catalog-runtime-CLMA9AXd.js";
3
- import { t as disconnectStateAdapter } from "../adapter-DxLhJEnO.js";
4
- import { n as resolve } from "../resolve-BnJA0UNE.js";
1
+ import { Ti as create, ja as SANDBOX_RUNTIME } from "../projection-B6VS7kbo.js";
2
+ import { n as pluginCatalogRuntime } from "../catalog-runtime-CpCmlD9L.js";
3
+ import { r as disconnectStateAdapter } from "../state-C3CbtD_m.js";
4
+ import { n as resolve } from "../resolve-1owMH4qo.js";
5
5
  // src/cli/snapshot-create.ts
6
6
  const DEFAULT_TIMEOUT_MS = 6e5;
7
7
  function progressMessage(phase) {
@@ -1,5 +1,5 @@
1
- import "../db-DV5AbcGM.js";
2
- import { n as JuniorPluginSet } from "../plugins-DtmjkTza.js";
1
+ import "../db-B3iyr_Or.js";
2
+ import { n as JuniorPluginSet } from "../plugins-B_0Cr0MO.js";
3
3
  interface UpgradeIo {
4
4
  info: (line: string) => void;
5
5
  }
@@ -1,6 +1,6 @@
1
- import { i as getChatConfig } from "../config-mIZeGEWv.js";
2
- import { t as createJuniorSqlExecutor } from "../executor-BItuRqAR.js";
3
- import { t as createPluginCatalogRuntime } from "../registry-MtwokaqW.js";
1
+ import { i as getChatConfig } from "../config-CCPHvTqx.js";
2
+ import { t as createJuniorSqlExecutor } from "../executor-DUSEwXaO.js";
3
+ import { t as createPluginCatalogRuntime } from "../registry-CHewwYEo.js";
4
4
  import { n as pluginCatalogConfigFromEnv, r as pluginCatalogConfigFromPluginSet, t as defineJuniorPlugins } from "../plugins-HYh_JOdw.js";
5
5
  import { t as loadAppPluginSet } from "../plugin-module-Cf5gVPWP.js";
6
6
  import { basename, dirname, join, resolve } from "node:path";
@@ -1,6 +1,6 @@
1
1
  import { v as __exportAll } from "./sentry-BRTJqumy.js";
2
- import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-Cb6MGvdt.js";
3
- import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-C6h-X2cZ.js";
2
+ import { E as withSpan, g as normalizeGenAiFinishReason, h as logWarn, i as extractGenAiUsageAttributes, p as logException, v as serializeGenAiAttribute } from "./logging-D0svFM8r.js";
3
+ import { a as toCanonicalInputMessage, n as getCurrentConversationPrivacy, o as toCanonicalOutputMessage, s as toGenAiMessagesTraceAttributes } from "./conversation-privacy-CZD5soDW.js";
4
4
  import { AwsClient } from "aws4fetch";
5
5
  import { del, get, put } from "@vercel/blob";
6
6
  import { calculateCost, completeSimple, getEnvApiKey, getModels, registerApiProvider } from "@earendil-works/pi-ai/compat";
@@ -207,6 +207,46 @@ function readAttachmentStorageConfig(env) {
207
207
  default: throw new Error("JUNIOR_ATTACHMENT_STORAGE_PROVIDER must be vercel-blob, s3, or memory");
208
208
  }
209
209
  }
210
+ // src/chat/encryption/keyring.ts
211
+ /**
212
+ * Encryption keys for secrets that Junior keeps at rest.
213
+ *
214
+ * `JUNIOR_ENCRYPTION_KEYS` lists `<id>:<key>` entries, comma-separated. Each
215
+ * key is 32 random bytes in base64 or base64url. `JUNIOR_ENCRYPTION_KEY_ID`
216
+ * names the key for new values; it is optional when there is one key. All
217
+ * listed keys decrypt. The config fails at startup when a key is invalid, an
218
+ * id repeats, or the active id is not in the list.
219
+ */
220
+ const KEY_BYTES = 32;
221
+ const KEY_ID_PATTERN = /^[A-Za-z0-9._-]{1,32}$/;
222
+ const KEY_MATERIAL_PATTERN = /^[A-Za-z0-9+/_-]+={0,2}$/;
223
+ function parseKey(entry, index) {
224
+ const separator = entry.indexOf(":");
225
+ const id = entry.slice(0, separator).trim();
226
+ const material = entry.slice(separator + 1).trim();
227
+ if (separator < 0 || !KEY_ID_PATTERN.test(id)) throw new Error(`JUNIOR_ENCRYPTION_KEYS entry ${index + 1} must be <id>:<key> with an id of letters, digits, ".", "_", or "-"`);
228
+ const key = KEY_MATERIAL_PATTERN.test(material) ? Buffer.from(material, "base64") : Buffer.alloc(0);
229
+ if (key.length !== KEY_BYTES) throw new Error(`JUNIOR_ENCRYPTION_KEYS key "${id}" must be ${KEY_BYTES} bytes in base64`);
230
+ return {
231
+ id,
232
+ key
233
+ };
234
+ }
235
+ /** Parse and check the encryption keyring from environment variables. */
236
+ function readEncryptionKeyring(env) {
237
+ const entries = (env.JUNIOR_ENCRYPTION_KEYS ?? "").split(",").map((entry) => entry.trim()).filter(Boolean);
238
+ if (entries.length === 0) throw new Error("JUNIOR_ENCRYPTION_KEYS is required. Generate a key with: node -e \"console.log('k1:' + require('node:crypto').randomBytes(32).toString('base64url'))\"");
239
+ const keys = entries.map(parseKey);
240
+ if (new Set(keys.map((key) => key.id)).size !== keys.length) throw new Error("JUNIOR_ENCRYPTION_KEYS must not repeat a key id");
241
+ const activeId = env.JUNIOR_ENCRYPTION_KEY_ID?.trim() || (keys.length === 1 ? keys[0]?.id : void 0);
242
+ if (!activeId) throw new Error("JUNIOR_ENCRYPTION_KEY_ID is required when JUNIOR_ENCRYPTION_KEYS has more than one key");
243
+ const active = keys.find((key) => key.id === activeId);
244
+ if (!active) throw new Error(`JUNIOR_ENCRYPTION_KEY_ID "${activeId}" is not in JUNIOR_ENCRYPTION_KEYS`);
245
+ return {
246
+ active,
247
+ keys
248
+ };
249
+ }
210
250
  // src/chat/queue/config.ts
211
251
  /** Jobs that one BullMQ worker runs at the same time, for each queue topic. */
212
252
  const DEFAULT_BULLMQ_WORKER_CONCURRENCY = 4;
@@ -866,6 +906,22 @@ function payloadAttributes(payload) {
866
906
  * expired cache. Also counts and estimates the request's images.
867
907
  * Pass the payload that Pi gives to `onPayload`. Never throws: telemetry must
868
908
  * not fail the request.
909
+ *
910
+ * To classify a cache miss, compare a `gen_ai.chat` span with the previous
911
+ * call in the same `gen_ai.conversation.id`:
912
+ * 1. `prefix.before_last_reply.hash` differs from the previous
913
+ * `prefix.hash`: Junior changed the prefix. The system or tools hash shows
914
+ * a prompt or tool change; `thinking.type` or `effort` shows a settings
915
+ * change; with all part hashes equal, the model or a thinking budget
916
+ * changed. `messages.before_last_reply.hash` not equal to the previous
917
+ * `messages.hash` means a history rewrite, expected with
918
+ * `gen_ai.conversation.compacted`.
919
+ * 2. Equal, with a gap of 5 minutes or more: the cache expired.
920
+ * 3. Equal, with a shorter gap: the provider or the gateway did not use it.
921
+ *
922
+ * `images.estimate` is the only per-image number, because Anthropic usage has
923
+ * no per-image split. Check it against the change in
924
+ * `gen_ai.usage.input_tokens` from the previous call.
869
925
  */
870
926
  function requestPrefixAttributes(payload) {
871
927
  if (typeof payload !== "object" || payload === null) return {};
@@ -1614,6 +1670,7 @@ function readChatConfig(env = process.env, functionMaxDurationSeconds = DEFAULT_
1614
1670
  cacheWarmingEnabled: parseKillSwitch("JUNIOR_CACHE_WARMING_ENABLED", env.JUNIOR_CACHE_WARMING_ENABLED),
1615
1671
  conversationWorkEnabled: parseKillSwitch("JUNIOR_CONVERSATION_WORK_ENABLED", env.JUNIOR_CONVERSATION_WORK_ENABLED),
1616
1672
  conversationWorkSoftYieldAfterMs: resolveConversationWorkSoftYieldAfterMs(resolvedFunctionMaxDurationSeconds),
1673
+ encryption: readEncryptionKeyring(env),
1617
1674
  sql: {
1618
1675
  databaseUrl,
1619
1676
  driver: readSqlDriver(env, databaseUrl),
@@ -1,9 +1,9 @@
1
- import { Ii as startOAuthFlow } from "./projection-DLQgfO5N.js";
2
- import { n as botConfig } from "./config-mIZeGEWv.js";
3
- import { F as deleteProviderIdentityForUser, P as deleteProviderIdentityForSlackUser, s as getSqlExecutor } from "./db--xuNV7g6.js";
4
- import { u as hasRequiredOAuthScope } from "./registry-MtwokaqW.js";
5
- import { n as pluginCatalogRuntime } from "./catalog-runtime-CLMA9AXd.js";
6
- import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-DJu7w6mI.js";
1
+ import { Ii as startOAuthFlow } from "./projection-B6VS7kbo.js";
2
+ import { n as botConfig } from "./config-CCPHvTqx.js";
3
+ import { I as deleteProviderIdentityForSlackUser, L as deleteProviderIdentityForUser, s as getSqlExecutor } from "./db-C1M1y-bh.js";
4
+ import { u as hasRequiredOAuthScope } from "./registry-CHewwYEo.js";
5
+ import { n as pluginCatalogRuntime } from "./catalog-runtime-CpCmlD9L.js";
6
+ import { c as deleteMcpServerSessionId, l as deleteMcpStoredOAuthCredentials, s as deleteMcpAuthSessionsForUserProvider } from "./agent-runner-HoQiUKLL.js";
7
7
  import { randomBytes } from "node:crypto";
8
8
  // src/handlers/oauth-html.ts
9
9
  /** Build pre-escaped callback HTML with the shared response security policy. */
@@ -456,6 +456,7 @@ const conversationSummaryReportSchema = z.object({
456
456
  startedAt: z.string(),
457
457
  lastSeenAt: z.string(),
458
458
  lastProgressAt: z.string(),
459
+ lastMessageAt: z.string().datetime().optional(),
459
460
  surface: conversationSurfaceSchema,
460
461
  actorIdentity: actorIdentitySchema.optional(),
461
462
  participants: z.array(actorIdentitySchema).optional(),
@@ -956,14 +957,4 @@ const conversationDetailReportSchema = conversationSummaryReportSchema.extend({
956
957
  sentryConversationUrl: z.string().optional(),
957
958
  sourceTask: conversationSourceTaskSchema.optional()
958
959
  }).strict().superRefine(validateConversationEvents);
959
- /**
960
- * A root in the feed, or one of its visible Threads. A Thread nests under
961
- * its nearest visible Thread ancestor, or under the root. Tasks never show.
962
- */
963
- const conversationFeedItemSchema = conversationSummaryReportSchema.extend({ threads: z.lazy(() => z.array(conversationFeedItemSchema)).optional() });
964
- const conversationFeedSchema = z.object({
965
- conversations: z.array(conversationFeedItemSchema),
966
- source: z.literal("conversation_index"),
967
- generatedAt: z.string()
968
- }).strict();
969
- export { renameConversationBodySchema as A, resolveMessageCards as B, createConversationBodySchema as C, conversationChildAgentTotalsSchema as D, forkConversationResponseSchema as E, annotationCard as F, briefCodeChangeSchema as G, MAX_INPUT_IMAGE_BYTES as H, messageCardRef as I, briefResourceLabel as J, briefLinkSchema as K, messageCardText as L, conversationReadPositionSchema as M, conversationReadReportSchema as N, CONVERSATION_TITLE_MAX_LENGTH as O, reviewItemChangeRecordSchema as P, readMessageCardRefs as R, conversationUsageSchema as S, forkConversationBodySchema as T, messageAttachmentSchema as U, MAX_INPUT_IMAGES as V, readMessageAttachments as W, parseBriefInput as X, conversationBriefSchema as Y, parseStoredBrief as Z, conversationReportEventSchema as _, conversationActivityPreviewSchema as a, conversationSummaryReportSchema as b, conversationDetailQuerySchema as c, conversationEventPageSchema as d, conversationEventsQuerySchema as f, conversationReportEventDataSchema as g, conversationParamsSchema as h, actorIdentitySchema as i, renameConversationResponseSchema as j, conversationTitleSchema as k, conversationDetailReportSchema as l, conversationFeedSchema as m, CONVERSATION_VERSION_HEADER as n, conversationAttachmentParamsSchema as o, conversationFeedQuerySchema as p, briefOutcomeStatusSchema as q, acceptedConversationMessageSchema as r, conversationAuxiliaryCostsSchema as s, CONVERSATION_DETAIL_VERSION_HEADER as t, conversationEventHistorySchema as u, conversationReportMessageEventSchema as v, createConversationMessageBodySchema as w, conversationSurfaceSchema as x, conversationReportStatusSchema as y, removedCardSchema as z };
960
+ export { renameConversationResponseSchema as A, MAX_INPUT_IMAGES as B, createConversationMessageBodySchema as C, CONVERSATION_TITLE_MAX_LENGTH as D, conversationChildAgentTotalsSchema as E, messageCardRef as F, briefLinkSchema as G, messageAttachmentSchema as H, messageCardText as I, conversationBriefSchema as J, briefOutcomeStatusSchema as K, readMessageCardRefs as L, conversationReadReportSchema as M, reviewItemChangeRecordSchema as N, conversationTitleSchema as O, annotationCard as P, removedCardSchema as R, createConversationBodySchema as S, forkConversationResponseSchema as T, readMessageAttachments as U, MAX_INPUT_IMAGE_BYTES as V, briefCodeChangeSchema as W, parseStoredBrief as X, parseBriefInput as Y, conversationReportMessageEventSchema as _, conversationActivityPreviewSchema as a, conversationSurfaceSchema as b, conversationDetailQuerySchema as c, conversationEventPageSchema as d, conversationEventsQuerySchema as f, conversationReportEventSchema as g, conversationReportEventDataSchema as h, actorIdentitySchema as i, conversationReadPositionSchema as j, renameConversationBodySchema as k, conversationDetailReportSchema as l, conversationParamsSchema as m, CONVERSATION_VERSION_HEADER as n, conversationAttachmentParamsSchema as o, conversationFeedQuerySchema as p, briefResourceLabel as q, acceptedConversationMessageSchema as r, conversationAuxiliaryCostsSchema as s, CONVERSATION_DETAIL_VERSION_HEADER as t, conversationEventHistorySchema as u, conversationReportStatusSchema as v, forkConversationBodySchema as w, conversationUsageSchema as x, conversationSummaryReportSchema as y, resolveMessageCards as z };
@@ -1,4 +1,4 @@
1
- import { P as reviewItemChangeRecordSchema, U as messageAttachmentSchema, i as actorIdentitySchema, l as conversationDetailReportSchema } from "./conversation-CDWejM4R.js";
1
+ import { H as messageAttachmentSchema, K as briefOutcomeStatusSchema, N as reviewItemChangeRecordSchema, i as actorIdentitySchema, l as conversationDetailReportSchema, y as conversationSummaryReportSchema } from "./conversation-CMkSmi02.js";
2
2
  import * as z from "zod";
3
3
  // src/reporting-schema.ts
4
4
  const healthReportSchema = z.object({
@@ -21,6 +21,8 @@ const skillReportSchema = z.object({
21
21
  disableModelInvocation: z.boolean().optional()
22
22
  }).strict();
23
23
  const skillReportsSchema = z.array(skillReportSchema);
24
+ /** One skill with its authored SKILL.md body, without frontmatter. */
25
+ const skillDetailReportSchema = skillReportSchema.extend({ body: z.string() }).strict();
24
26
  const pluginPackageContentItemReportSchema = z.object({
25
27
  dir: z.string(),
26
28
  hasMigrationsDir: z.boolean(),
@@ -178,4 +180,27 @@ const steerConversationPendingMessagesResponseSchema = z.object({
178
180
  conversationId: z.string().min(1),
179
181
  steeredInboundMessageIds: z.array(z.string().min(1))
180
182
  }).strict();
181
- export { pluginsSchema as _, conversationPendingMessageDeliverySchema as a, skillReportsSchema as b, conversationUnchangedDetailWithMailboxSchema as c, healthReportSchema as d, pluginOperationalReportFeedSchema as f, pluginSchema as g, pluginPackageContentReportSchema as h, conversationPendingAuthorizationSchema as i, steerConversationPendingMessagesBodySchema as l, pluginPackageContentItemReportSchema as m, cancelConversationPendingMessagesResponseSchema as n, conversationPendingMessageSchema as o, pluginOperationalReportSchema as p, conversationDetailWithMailboxReportSchema as r, conversationPendingMessagesReportSchema as s, cancelConversationPendingMessagesBodySchema as t, steerConversationPendingMessagesResponseSchema as u, runtimeInfoReportSchema as v, skillReportSchema as y };
183
+ // src/api/schema/conversation-feed.ts
184
+ /**
185
+ * The part of a Conversation's latest Brief that a feed row shows: what the
186
+ * work is about and how it stands.
187
+ */
188
+ const conversationFeedBriefSchema = z.object({
189
+ intent: z.string(),
190
+ status: briefOutcomeStatusSchema,
191
+ summary: z.string()
192
+ }).strict();
193
+ /**
194
+ * A root in the feed, or one of its visible Threads. A Thread nests under
195
+ * its nearest visible Thread ancestor, or under the root. Tasks never show.
196
+ */
197
+ const conversationFeedItemSchema = conversationSummaryReportSchema.extend({
198
+ brief: conversationFeedBriefSchema.optional(),
199
+ threads: z.lazy(() => z.array(conversationFeedItemSchema)).optional()
200
+ });
201
+ const conversationFeedSchema = z.object({
202
+ conversations: z.array(conversationFeedItemSchema),
203
+ source: z.literal("conversation_index"),
204
+ generatedAt: z.string()
205
+ }).strict();
206
+ export { skillReportsSchema as C, skillReportSchema as S, pluginPackageContentReportSchema as _, conversationDetailWithMailboxReportSchema as a, runtimeInfoReportSchema as b, conversationPendingMessageSchema as c, steerConversationPendingMessagesBodySchema as d, steerConversationPendingMessagesResponseSchema as f, pluginPackageContentItemReportSchema as g, pluginOperationalReportSchema as h, cancelConversationPendingMessagesResponseSchema as i, conversationPendingMessagesReportSchema as l, pluginOperationalReportFeedSchema as m, conversationFeedSchema as n, conversationPendingAuthorizationSchema as o, healthReportSchema as p, cancelConversationPendingMessagesBodySchema as r, conversationPendingMessageDeliverySchema as s, conversationFeedBriefSchema as t, conversationUnchangedDetailWithMailboxSchema as u, pluginSchema as v, skillDetailReportSchema as x, pluginsSchema as y };
@@ -1,4 +1,4 @@
1
- import { h as logWarn } from "./logging-Cb6MGvdt.js";
1
+ import { h as logWarn } from "./logging-D0svFM8r.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  // src/chat/conversation-privacy.ts
4
4
  const SAFE_METADATA_KEY_LIMIT = 20;