@sentry/junior 0.305.0 → 0.306.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 (80) hide show
  1. package/dist/{adapter-context-BpvbUki8.js → adapter-context-CnY-i32r.js} +2 -2
  2. package/dist/{admin-CoDt35ny.js → admin-BLLdLnXh.js} +2 -2
  3. package/dist/{agent-runner-C5d6rY5g.js → agent-runner-BaLjEjPR.js} +261 -190
  4. package/dist/api/schema.d.ts +2 -2
  5. package/dist/api/schema.js +7 -8
  6. package/dist/api.d.ts +19 -4
  7. package/dist/api.js +137 -40
  8. package/dist/{app-Cs157Zc5.d.ts → app-DvYbM9UD.d.ts} +2 -2
  9. package/dist/app.d.ts +1 -1
  10. package/dist/app.js +487 -434
  11. package/dist/{background-compaction-queue-BTqMIfTA.js → background-compaction-queue-D2wzxtGU.js} +2 -2
  12. package/dist/{briefs-BRdznF7c.js → briefs-DvyzXfrF.js} +3 -3
  13. package/dist/{catalog-runtime-J52Tej47.js → catalog-runtime-B1R-nHd3.js} +1 -1
  14. package/dist/cli/chat.js +15 -15
  15. package/dist/cli/check.js +3 -3
  16. package/dist/cli/main.js +3 -3
  17. package/dist/cli/plugins.js +4 -4
  18. package/dist/cli/snapshot-create.js +5 -5
  19. package/dist/cli/upgrade.d.ts +1 -1
  20. package/dist/cli/upgrade.js +3 -3
  21. package/dist/{config-CBZp0udd.js → config-DUD-zMvp.js} +111 -13
  22. package/dist/{connections-BYmuJ6Vm.js → connections-CDhsqPcC.js} +6 -6
  23. package/dist/{continue-in-slack-Cvot6S38.js → continue-in-slack-BXQizz9o.js} +5 -5
  24. package/dist/{conversation-BOqdRtUx.js → conversation--f85g4zL.js} +132 -132
  25. package/dist/{conversation-feed-CgpgP7yi.js → conversation-feed-BNs9KiqC.js} +1 -1
  26. package/dist/{conversation-privacy-D2pOzBNl.js → conversation-privacy-YE54gMN8.js} +1 -1
  27. package/dist/{conversation-turn-CI8WDpnK.js → conversation-turn-BzdmrHb0.js} +22 -40
  28. package/dist/{credential-sync-COqnZ1Dx.js → credential-sync-Cdm-e1vJ.js} +14 -13
  29. package/dist/{db-DU84dCVu.js → db-DV2ZUb1Y.js} +90 -11
  30. package/dist/{db-zbN5ZV_o.d.ts → db-pH357Dkt.d.ts} +1 -1
  31. package/dist/{executor-CFyrgOu1.js → executor-CjNhwwnj.js} +47 -4
  32. package/dist/{history-m2-ceTTX.js → history-N7IVbUom.js} +5 -1
  33. package/dist/{install-CQ76CfRw.js → install-DbD7C5td.js} +2 -2
  34. package/dist/instrumentation.js +2 -2
  35. package/dist/{lineage-DLd2UxVP.js → lineage-BFdIPb3o.js} +2 -2
  36. package/dist/{logging-BPNTQVFu.js → logging-oYpJYr-S.js} +1 -1
  37. package/dist/{message-BWJLeQ5e.js → message-BBPcMKJY.js} +8 -8
  38. package/dist/{model-input-DoM9Ht-d.js → model-input-DYYF3a8B.js} +3 -3
  39. package/dist/nitro.d.ts +1 -1
  40. package/dist/nitro.js +4 -4
  41. package/dist/{oauth-callback-server-DeHbnAQl.js → oauth-callback-server-C7Q987su.js} +2 -2
  42. package/dist/{projection-CcFBVFUo.js → projection-CWXDE0f6.js} +7738 -6166
  43. package/dist/{prompt-C5LREK2p.js → prompt-P3eRqO8C.js} +15 -7
  44. package/dist/{queue-B2AAL3ym.js → queue-7FSijgqG.js} +4 -4
  45. package/dist/{registry-BjZZqKqi.js → registry-1pzXmplY.js} +1 -1
  46. package/dist/{resolve-CeJgXuH1.js → resolve-n87oXY-d.js} +3 -3
  47. package/dist/{result-icDrueyB.js → result-BmF9v9bv.js} +9 -9
  48. package/dist/{runner-nVfMkMMB.js → runner-4j7ZsxP5.js} +13 -15
  49. package/dist/{sandbox-egress-signals-H9vQ5qRf.js → sandbox-egress-signals-BRQI8HvT.js} +1 -1
  50. package/dist/{automation-CuA3yEcD.js → schedule-CHPWQn-x.js} +347 -5
  51. package/dist/{schema-CKcu-IK6.d.ts → schema-CVbIjrF3.d.ts} +71 -1
  52. package/dist/{schema-Bx0Mlo32.js → schema-D7iIEh6t.js} +52 -6
  53. package/dist/{service-account-Dw06p3zm.js → service-account-BDQ9xzta.js} +3 -3
  54. package/dist/{service-account-DU5865XA.js → service-account-DzQiOmqa.js} +5 -5
  55. package/dist/{session-stop-uotLtp4g.js → session-stop-BQxgHR4X.js} +854 -160
  56. package/dist/{skills-Bex1EaO5.js → skills-CPf4vNuC.js} +2 -2
  57. package/dist/{slack-conversation-unfurl-EPG3riWF.js → slack-conversation-unfurl-B1KEptUg.js} +10 -9
  58. package/dist/{spawn-CoD3vDuS.js → spawn-CjGddiAU.js} +6 -6
  59. package/dist/{state-nCR4Muhn.js → state-9wfj6aSD.js} +4 -4
  60. package/dist/{stop-BFVd0P0m.js → stop-CsQGuN5n.js} +62 -117
  61. package/dist/{store-Ca6G962n.js → store-Dz3YZ7gQ.js} +5 -5
  62. package/dist/{task-queue-BLPZU6kC.js → task-queue-CFlrJguF.js} +3 -3
  63. package/dist/{task-runner-xsOPIxCZ.js → task-runner-frzlUvFD.js} +8 -9
  64. package/dist/{thread-context-BOvZhsKK.js → thread-context-C4QuZlM8.js} +8 -91
  65. package/dist/turn-session-routing-BXaubz2w.js +244 -0
  66. package/dist/{turn-user-message-BrhuyYrH.js → turn-user-message-DNC0eRZ7.js} +3 -3
  67. package/dist/users-XCCKn3xW.js +181 -0
  68. package/dist/{validation-BnY9K5WB.js → validation-L5fdjmFX.js} +1 -1
  69. package/dist/{version-qROlRQGF.js → version-BFmuwgxP.js} +1 -1
  70. package/dist/version.js +1 -1
  71. package/dist/{viewer-CxUiOraX.js → viewer-DKOeHpv3.js} +3 -3
  72. package/dist/{warmup--Gkz7iB-.js → warmup-mTMIatCV.js} +267 -272
  73. package/dist/{web-message-id-lNodcCOI.js → web-message-id-CUaSiGme.js} +16 -1
  74. package/dist/{worker-DJ8d9fmD.js → worker-Bz4KNxjI.js} +7 -7
  75. package/migrations/0114_plan_items.sql +22 -0
  76. package/migrations/meta/0114_snapshot.json +5203 -0
  77. package/migrations/meta/_journal.json +7 -0
  78. package/package.json +6 -6
  79. package/dist/schedule-cP0AACm1.js +0 -344
  80. package/dist/turn-session-routing-2bW2qfeb.js +0 -1792
@@ -1,7 +1,7 @@
1
- import { A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, G as createProviderError, Q as resolveGatewayCredential, S as completeDecision$1, T as embedTexts$1, U as ProviderError, X as isProviderRetryError, b as GEN_AI_PROVIDER_NAME, w as completeText$1, x as GEN_AI_SERVER_ADDRESS } from "./config-CBZp0udd.js";
2
- import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-BPNTQVFu.js";
3
- import { r as getConversationEventStore, st as agentTurnCostUsd } from "./db-DU84dCVu.js";
4
- import { $ as conversationBriefSchema, Z as briefOutcomeStatusSchema, et as parseBriefInput } from "./conversation-BOqdRtUx.js";
1
+ import { $ as ProviderError, A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd, S as completeDecision$1, T as embedTexts$1, b as GEN_AI_PROVIDER_NAME, ct as resolveGatewayCredential, ot as isProviderRetryError, tt as createProviderError, w as completeText$1, x as GEN_AI_SERVER_ADDRESS } from "./config-DUD-zMvp.js";
2
+ import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-oYpJYr-S.js";
3
+ import { r as getConversationEventStore, ut as agentTurnCostUsd } from "./db-DV2ZUb1Y.js";
4
+ import { I as conversationBriefSchema, L as parseBriefInput, P as briefOutcomeStatusSchema } from "./conversation--f85g4zL.js";
5
5
  import * as z from "zod";
6
6
  import { createGatewayProvider } from "@ai-sdk/gateway";
7
7
  import { transcribe } from "ai";
@@ -780,7 +780,15 @@ const EVENT_SYSTEM_ACTOR = {
780
780
  * Source and Actor. `eventType` only supports saved synthetic Slack input.
781
781
  */
782
782
  function isEventConversationMessage(message) {
783
- return Boolean(message.meta?.eventType) || message.author?.userId === "UJRNEVENT";
783
+ return Boolean(message.meta?.eventType) || isEventAuthorId(message.author?.userId);
784
+ }
785
+ /** Author id of an Event Message by a listed bot, which has no Identity. */
786
+ function eventBotAuthorId(provider, handle) {
787
+ return `${EVENT_AUTHOR_ID}:${provider}:${handle.toLowerCase()}`;
788
+ }
789
+ /** Whether an author id belongs to an Event Message, system or listed bot. */
790
+ function isEventAuthorId(id) {
791
+ return id === "UJRNEVENT" || Boolean(id?.startsWith(`UJRNEVENT:`));
784
792
  }
785
793
  // src/chat/briefs/event-entries.ts
786
794
  const TOOL_TEXT_LIMIT = 1500;
@@ -842,7 +850,7 @@ function briefEntriesFromReportEvents(events) {
842
850
  if (data.type === "message" && data.text && data.role !== "system") {
843
851
  const turnId = data.role === "user" ? turnByMessageId.get(data.messageId) : activeTurnId;
844
852
  const author = actorName(data.actorIdentity, resolvedActorNames);
845
- const role = data.role === "user" && (Boolean(data.eventType) || data.actorIdentity?.slackUserId === "UJRNEVENT") ? "event" : data.role;
853
+ const role = data.role === "user" && (Boolean(data.eventType) || isEventAuthorId(data.actorIdentity?.slackUserId)) ? "event" : data.role;
846
854
  entries.push({
847
855
  index: event.seq,
848
856
  role,
@@ -888,4 +896,4 @@ Rules:
888
896
  - Cite a URL only when its exact full string occurs in an entry, evidence, or the previous Brief. Return cited URLs in \`urls\`. Core adds code changes and resources separately.
889
897
  - Keep the summary under 600 characters, intent under 400 characters, outcome text under 600 characters, and each other string under 400 characters.
890
898
  `;
891
- export { agentsInstructionsUpdatedEvent as _, EVENT_SYSTEM_ACTOR as a, conversationNoteEvent as b, completeDecision as c, embedTexts as d, generateImages as f, JUNIOR_NATIVE_EVENT_NAMESPACE as g, NoAudioError as h, EVENT_MESSAGE_AUTHOR as i, completeObject as l, transcribeFromUrl as m, briefEntriesFromReportEvents as n, isEventConversationMessage as o, searchWeb as p, EVENT_AUTHOR_ID as r, generateBrief as s, BRIEF_PROMPT as t, completeText as u, authenticationLinkedEvent as v, renderJuniorNativeConversationEvent as x, authenticationUnlinkedEvent as y };
899
+ export { renderJuniorNativeConversationEvent as S, JUNIOR_NATIVE_EVENT_NAMESPACE as _, EVENT_SYSTEM_ACTOR as a, authenticationUnlinkedEvent as b, generateBrief as c, completeText as d, embedTexts as f, NoAudioError as g, transcribeFromUrl as h, EVENT_MESSAGE_AUTHOR as i, completeDecision as l, searchWeb as m, briefEntriesFromReportEvents as n, eventBotAuthorId as o, generateImages as p, EVENT_AUTHOR_ID as r, isEventConversationMessage as s, BRIEF_PROMPT as t, completeObject as u, agentsInstructionsUpdatedEvent as v, conversationNoteEvent as x, authenticationLinkedEvent as y };
@@ -1,6 +1,6 @@
1
- import { i as getChatConfig } from "./config-CBZp0udd.js";
2
- import { h as logWarn } from "./logging-BPNTQVFu.js";
3
- import { a as queueCallback, d as verifyQueueMessage, f as getQueueProvider, l as QUEUE_SIGNATURE_MAX_AGE_MS, u as signQueueMessage } from "./background-compaction-queue-BTqMIfTA.js";
1
+ import { i as getChatConfig } from "./config-DUD-zMvp.js";
2
+ import { h as logWarn } from "./logging-oYpJYr-S.js";
3
+ import { a as queueCallback, d as verifyQueueMessage, f as getQueueProvider, l as QUEUE_SIGNATURE_MAX_AGE_MS, u as signQueueMessage } from "./background-compaction-queue-D2wzxtGU.js";
4
4
  import * as z from "zod";
5
5
  import { createHash } from "node:crypto";
6
6
  // src/chat/sandbox/snapshot/job-queue.ts
@@ -92,7 +92,7 @@ function cacheWarmupCallback() {
92
92
  maxDeliveries: 1,
93
93
  onRejected: logCacheWarmupRejected,
94
94
  run: async (message) => {
95
- const { runCacheWarmup } = await import("./warmup--Gkz7iB-.js").then((n) => n.s);
95
+ const { runCacheWarmup } = await import("./warmup-mTMIatCV.js").then((n) => n.s);
96
96
  await runCacheWarmup(message);
97
97
  },
98
98
  skip: () => !getChatConfig().cacheWarmingEnabled,
@@ -1,5 +1,5 @@
1
1
  import { n as normalizePluginPackageNames, o as pluginRoots, t as discoverInstalledPluginPackageContent } from "./package-discovery-x4AvVhMj.js";
2
- import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-BPNTQVFu.js";
2
+ import { b as setSpanAttributes, h as logWarn, m as logInfo } from "./logging-oYpJYr-S.js";
3
3
  import { o as isUserActor, s as parseActorUserId } from "./actor-D2iXzvlN.js";
4
4
  import * as z from "zod";
5
5
  import path from "node:path";
@@ -1,6 +1,6 @@
1
- import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-CQ76CfRw.js";
2
- import { ea as create, fs as sleep, ia as getSandboxProvider, na as isStale } from "./projection-CcFBVFUo.js";
3
- import { X as getStateAdapter } from "./db-DU84dCVu.js";
1
+ import { i as trace, n as postinstall, o as getSandboxResources, t as dependencies } from "./install-DbD7C5td.js";
2
+ import { Fi as create, Li as isStale, _s as sleep, zi as getSandboxProvider } from "./projection-CWXDE0f6.js";
3
+ import { $ as getStateAdapter } from "./db-DV2ZUb1Y.js";
4
4
  import * as z from "zod";
5
5
  // src/chat/sandbox/snapshot/resolve.ts
6
6
  const SNAPSHOT_CACHE_PREFIX = "junior:sandbox_snapshot_profile:v2";
@@ -1,13 +1,13 @@
1
1
  import { t as __exportAll } from "./rolldown-runtime-BKpuH2hG.js";
2
- import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, k as turnBehavior } from "./db-DU84dCVu.js";
3
- import { C as listActiveMailboxTurns, N as renderEventBatchInputs, P as timerWatchCredentialSubject, T as resolveMailboxTurnWork, j as eventBatchMessageMeta, k as EVENT_WAIT_MS, s as eventReviewItemInputs, t as getConversationStoppedAtMs, w as parseEventMessages, x as getEventBatchDelayMs } from "./session-stop-uotLtp4g.js";
4
- import { a as EVENT_SYSTEM_ACTOR } from "./prompt-C5LREK2p.js";
5
- import { f as credentialContextForActor } from "./registry-BjZZqKqi.js";
6
- import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, D as getAgentInvocationIdForMessage, E as getAgentInvocationIdForEvents, F as getTurnReplyKey, M as getAgentReplyMessageId, O as getAgentInvocationIdForResult, R as buildDeterministicTurnId, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationTurnId, y as childMessageSenderMetadata } from "./turn-user-message-BrhuyYrH.js";
7
- import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-Ca6G962n.js";
8
- import { $t as childAgentInput, Bt as NON_TERMINAL_AGENT_INVOCATION_STATUSES, Gt as getLatestAgentInvocationForConversation, Kt as isTerminalAgentInvocation, Qt as sendsResultToParent, Vt as TERMINAL_AGENT_INVOCATION_STATUSES, Xt as markAgentInvocationParentMailboxAppended, Zt as reportReplacedWithoutOpenWork, an as logDroppedParentMessage, cn as createAgentInvocationWorker, dn as endAgentInvocationsOfStoppedWork, en as getChildAgentInputSender, fn as enqueueAgentInvocation, nn as routeChildInput, on as parentMessageText, pn as resolveAgentInvocationId, qt as listAgentInvocationsForConversation, sn as readParentMessage, tn as readChildConversationSender, un as endActiveAgentInvocations, xn as createAgentInvocationFromLatest, zt as listUnreportedSiblingAgents } from "./warmup--Gkz7iB-.js";
9
- import { Kn as renderUntrustedTag } from "./projection-CcFBVFUo.js";
10
- import { C as agentInvocationResultEventType, S as AGENT_REPLY_EVENT_TYPE, b as AGENT_MESSAGE_EVENT_TYPE, y as AGENT_INVOCATION_EVENT_NAMESPACE } from "./web-message-id-lNodcCOI.js";
2
+ import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, k as turnBehavior } from "./db-DV2ZUb1Y.js";
3
+ import { A as parseEventMessages, B as renderEventBatchInputs, D as getEventBatchDelayMs, F as EVENT_WAIT_MS, R as eventBatchMessageMeta, V as timerWatchCredentialSubject, j as resolveMailboxTurnWork, k as listActiveMailboxTurns, s as eventReviewItemInputs, t as getConversationStoppedAtMs } from "./session-stop-BQxgHR4X.js";
4
+ import { a as EVENT_SYSTEM_ACTOR } from "./prompt-P3eRqO8C.js";
5
+ import { f as credentialContextForActor } from "./registry-1pzXmplY.js";
6
+ import { A as getAgentInvocationResultMessageId, C as ownAgentInvocation, D as getAgentInvocationIdForMessage, E as getAgentInvocationIdForEvents, F as getTurnReplyKey, M as getAgentReplyMessageId, O as getAgentInvocationIdForResult, R as buildDeterministicTurnId, S as listChildMessages, b as hasAgentInvocationReply, j as getAgentInvocationTurnId, y as childMessageSenderMetadata } from "./turn-user-message-DNC0eRZ7.js";
7
+ import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-Dz3YZ7gQ.js";
8
+ import { $t as readChildConversationSender, Gt as listAgentInvocationsForConversation, Jt as markAgentInvocationParentMailboxAppended, Lt as listUnreportedSiblingAgents, Qt as getChildAgentInputSender, Rt as NON_TERMINAL_AGENT_INVOCATION_STATUSES, Ut as getLatestAgentInvocationForConversation, Wt as isTerminalAgentInvocation, Xt as sendsResultToParent, Yt as reportReplacedWithoutOpenWork, Zt as childAgentInput, an as readParentMessage, cn as endActiveAgentInvocations, dn as resolveAgentInvocationId, en as routeChildInput, in as parentMessageText, ln as endAgentInvocationsOfStoppedWork, on as createAgentInvocationWorker, rn as logDroppedParentMessage, un as enqueueAgentInvocation, yn as createAgentInvocationFromLatest, zt as TERMINAL_AGENT_INVOCATION_STATUSES } from "./warmup-mTMIatCV.js";
9
+ import { Z as renderUntrustedTag } from "./config-DUD-zMvp.js";
10
+ import { C as AGENT_MESSAGE_EVENT_TYPE, E as agentInvocationResultEventType, S as AGENT_INVOCATION_EVENT_NAMESPACE, T as AGENT_REPLY_EVENT_TYPE } from "./web-message-id-CUaSiGme.js";
11
11
  import { actorSchema } from "@sentry/junior-plugin-api";
12
12
  // src/chat/agent-invocations/result.ts
13
13
  var result_exports = /* @__PURE__ */ __exportAll({
@@ -1,12 +1,13 @@
1
- import { B as messageCardText } from "./conversation-BOqdRtUx.js";
2
- import { c as buildDeliveredTurnStatePatch, l as loadPendingMessageCards, o as completeAuthPauseTurn, r as finalizeFailedTurnReplyWithEvent, t as buildTurnThreadContext } from "./thread-context-BOvZhsKK.js";
3
- import { A as latestConversationMessageSeq, I as upsertConversationMessage, M as normalizeConversationText, N as recordDeliveredAssistantMessage, W as authorizationId, a as loadProjection, b as persistConversationMessages, bn as persistWithRetry, d as recordAuthorizationCompleted, j as markConversationMessage, nt as saveTurnCheckpoint, t as commitAcceptedReply, un as getAssistantReplyText, v as hydrateConversationMessages } from "./projection-CcFBVFUo.js";
4
- import { S as setTags, T as withLogContext, p as logException } from "./logging-BPNTQVFu.js";
5
- import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-xsOPIxCZ.js";
6
- import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-2bW2qfeb.js";
7
- import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-BrhuyYrH.js";
8
- import { f as credentialContextForActor } from "./registry-BjZZqKqi.js";
9
- import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-DU84dCVu.js";
1
+ import { q as messageCardText } from "./conversation--f85g4zL.js";
2
+ import { a as buildDeliveredTurnStatePatch, o as loadPendingMessageCards, r as completeAuthPauseTurn, t as buildTurnThreadContext } from "./thread-context-C4QuZlM8.js";
3
+ import { A as normalizeConversationText, H as authorizationId, O as latestConversationMessageSeq, P as upsertConversationMessage, a as loadProjection, b as persistConversationMessages, cn as getAssistantReplyText, d as recordAuthorizationCompleted, et as saveTurnCheckpoint, j as recordDeliveredAssistantMessage, k as markConversationMessage, t as commitAcceptedReply, v as hydrateConversationMessages, vn as persistWithRetry } from "./projection-CWXDE0f6.js";
4
+ import { S as setTags, T as withLogContext, p as logException } from "./logging-oYpJYr-S.js";
5
+ import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-frzlUvFD.js";
6
+ import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-BXaubz2w.js";
7
+ import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-DNC0eRZ7.js";
8
+ import { N as finalizeFailedTurnReplyWithEvent } from "./agent-runner-BaLjEjPR.js";
9
+ import { f as credentialContextForActor } from "./registry-1pzXmplY.js";
10
+ import { P as SYSTEM_IDENTITY_ID, a as getConversationStore, r as getConversationEventStore } from "./db-DV2ZUb1Y.js";
10
11
  import { randomUUID } from "node:crypto";
11
12
  import { createLocalSource, localDestinationSchema } from "@sentry/junior-plugin-api";
12
13
  // src/chat/local/runner.ts
@@ -267,10 +268,7 @@ async function runLocalAgentTurnInContext(input, deps) {
267
268
  if (outcome.status !== "completed") throw new Error(`Local agent run ended with ${outcome.status}`);
268
269
  reply = outcome.result;
269
270
  modelFailureCaptureAttempted = reply.diagnostics.outcome !== "success";
270
- const finalized = finalizeFailedTurnReplyWithEvent({
271
- reply,
272
- logException
273
- });
271
+ const finalized = finalizeFailedTurnReplyWithEvent({ reply });
274
272
  reply = finalized.reply;
275
273
  modelFailureEventId = finalized.eventId;
276
274
  modelFailureReason = finalized.failureReason;
@@ -382,7 +380,7 @@ async function runLocalAgentTurnInContext(input, deps) {
382
380
  await scheduleSessionCompletedPluginTasks({
383
381
  conversationId: input.conversationId,
384
382
  sessionId: turnId
385
- }, { send: async (message) => {
383
+ }, async (message) => {
386
384
  try {
387
385
  await processPluginTask(message);
388
386
  } catch (error) {
@@ -393,7 +391,7 @@ async function runLocalAgentTurnInContext(input, deps) {
393
391
  turnId
394
392
  });
395
393
  }
396
- } });
394
+ });
397
395
  } catch (error) {
398
396
  logException(error, "local.plugin.session_completion_task.failed", {
399
397
  conversationId: input.conversationId,
@@ -1,4 +1,4 @@
1
- import { qa as sandboxEgressSignalsResponseSchema } from "./projection-CcFBVFUo.js";
1
+ import { la as sandboxEgressSignalsResponseSchema } from "./projection-CWXDE0f6.js";
2
2
  // src/chat/local/sandbox-egress-signals.ts
3
3
  const SANDBOX_EGRESS_SIGNALS_PATH = "/api/internal/sandbox-egress/signals";
4
4
  const LOCAL_DEV_SERVER_TIMEOUT_MS = 1e3;
@@ -1,5 +1,4 @@
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-BOqdRtUx.js";
1
+ import { i as actorIdentitySchema } from "./conversation--f85g4zL.js";
3
2
  import * as z from "zod";
4
3
  import { actorUserIdSchema, destinationVisibilitySchema, eventMatchFieldsSchema, eventMatchSchema, eventReachSchema, eventTypeSchema, pluginEventTypeSchema, slackDestinationSchema, taskOutcomeSchema } from "@sentry/junior-plugin-api";
5
4
  // src/chat/automations/task.ts
@@ -44,6 +43,260 @@ function automationTaskColumns(task) {
44
43
  skill: task.skill
45
44
  };
46
45
  }
46
+ // src/chat/scheduled-automations/cadence.ts
47
+ const FORMATTERS = /* @__PURE__ */ new Map();
48
+ function getFormatter(timezone) {
49
+ const existing = FORMATTERS.get(timezone);
50
+ if (existing) return existing;
51
+ const formatter = new Intl.DateTimeFormat("en-US", {
52
+ timeZone: timezone,
53
+ hour12: false,
54
+ year: "numeric",
55
+ month: "2-digit",
56
+ day: "2-digit",
57
+ hour: "2-digit",
58
+ minute: "2-digit",
59
+ second: "2-digit"
60
+ });
61
+ FORMATTERS.set(timezone, formatter);
62
+ return formatter;
63
+ }
64
+ function normalizeHour(hour) {
65
+ return hour === 24 ? 0 : hour;
66
+ }
67
+ function getLocalDateWeekday(date) {
68
+ return new Date(Date.UTC(date.year, date.month - 1, date.day)).getUTCDay();
69
+ }
70
+ function getWeekStart(date) {
71
+ return addDays(date, -((getLocalDateWeekday(date) + 6) % 7));
72
+ }
73
+ /**
74
+ * Check that a value is an IANA time zone that this runtime knows. This module
75
+ * has no runtime imports, so the dashboard client bundle can use it.
76
+ */
77
+ function isValidTimeZone(timezone) {
78
+ try {
79
+ new Intl.DateTimeFormat("en-US", { timeZone: timezone }).format();
80
+ return true;
81
+ } catch {
82
+ return false;
83
+ }
84
+ }
85
+ /** Resolve a UTC timestamp into calendar parts for a named time zone. */
86
+ function getZonedDateTimeParts(timestampMs, timezone) {
87
+ const parts = getFormatter(timezone).formatToParts(new Date(timestampMs));
88
+ const values = new Map(parts.map((part) => [part.type, part.value]));
89
+ const year = Number(values.get("year"));
90
+ const month = Number(values.get("month"));
91
+ const day = Number(values.get("day"));
92
+ return {
93
+ year,
94
+ month,
95
+ day,
96
+ hour: normalizeHour(Number(values.get("hour"))),
97
+ minute: Number(values.get("minute")),
98
+ second: Number(values.get("second")),
99
+ weekday: getLocalDateWeekday({
100
+ year,
101
+ month,
102
+ day
103
+ })
104
+ };
105
+ }
106
+ function getTimeZoneOffsetMs(timestampMs, timezone) {
107
+ const parts = getZonedDateTimeParts(timestampMs, timezone);
108
+ return Date.UTC(parts.year, parts.month - 1, parts.day, parts.hour, parts.minute, parts.second) - timestampMs;
109
+ }
110
+ function localDateTimeToTimestampMs(args) {
111
+ const localAsUtcMs = Date.UTC(args.date.year, args.date.month - 1, args.date.day, args.time.hour, args.time.minute, 0);
112
+ const offsets = /* @__PURE__ */ new Set();
113
+ for (const probeDeltaMs of [
114
+ -1296e5,
115
+ -432e5,
116
+ 0,
117
+ 432e5,
118
+ 1296e5
119
+ ]) offsets.add(getTimeZoneOffsetMs(localAsUtcMs + probeDeltaMs, args.timezone));
120
+ const matches = [...offsets].map((offsetMs) => localAsUtcMs - offsetMs).filter((timestampMs) => {
121
+ const parts = getZonedDateTimeParts(timestampMs, args.timezone);
122
+ return parts.year === args.date.year && parts.month === args.date.month && parts.day === args.date.day && parts.hour === args.time.hour && parts.minute === args.time.minute;
123
+ });
124
+ if (matches.length === 0) return;
125
+ return Math.min(...matches);
126
+ }
127
+ /** Resolve local time, rejecting DST gaps and choosing the earlier instant in a fold. */
128
+ function resolveLocalScheduleAtMs(args) {
129
+ const date = parseLocalDate(args.date);
130
+ if (!date) return;
131
+ return localDateTimeToTimestampMs({
132
+ date,
133
+ time: args.time,
134
+ timezone: args.timezone
135
+ });
136
+ }
137
+ function daysBetween(left, right) {
138
+ return Math.floor((Date.UTC(right.year, right.month - 1, right.day) - Date.UTC(left.year, left.month - 1, left.day)) / 864e5);
139
+ }
140
+ function weeklyRecurrenceMatchesDate(date, start, recurrence) {
141
+ if (compareDate(date, start) < 0) return false;
142
+ return normalizeWeekdays(recurrence.weekdays).includes(getLocalDateWeekday(date)) && Math.floor(daysBetween(getWeekStart(start), getWeekStart(date)) / 7) % recurrence.interval === 0;
143
+ }
144
+ function greatestCommonDivisor(left, right) {
145
+ let a = Math.abs(left);
146
+ let b = Math.abs(right);
147
+ while (b !== 0) [a, b] = [b, a % b];
148
+ return a;
149
+ }
150
+ function findNextRunAtMs(args) {
151
+ const start = parseLocalDate(args.recurrence.startDate);
152
+ const interval = args.recurrence.interval;
153
+ if (!start || !Number.isInteger(interval) || interval <= 0) return;
154
+ const searchFrom = compareDate(args.searchFrom, start) < 0 ? start : args.searchFrom;
155
+ if (args.recurrence.frequency === "daily") {
156
+ const offsetDays = daysBetween(start, searchFrom);
157
+ let candidateDate = addDays(start, Math.ceil(offsetDays / interval) * interval);
158
+ const gregorianCycleDays = 146097;
159
+ const candidateCount = gregorianCycleDays / greatestCommonDivisor(gregorianCycleDays, interval);
160
+ for (let attempts = 0; attempts < candidateCount; attempts += 1) {
161
+ const candidate = buildCandidate({
162
+ date: candidateDate,
163
+ recurrence: args.recurrence,
164
+ timezone: args.timezone
165
+ });
166
+ if (candidate !== void 0 && candidate > args.afterMs) return candidate;
167
+ candidateDate = addDays(candidateDate, interval);
168
+ }
169
+ return;
170
+ }
171
+ if (args.recurrence.frequency === "weekly") {
172
+ if (normalizeWeekdays(args.recurrence.weekdays).length === 0) return;
173
+ let candidateDate = searchFrom;
174
+ const gregorianCycleDays = 146097;
175
+ const cadenceDays = interval * 7;
176
+ const searchDays = gregorianCycleDays * cadenceDays / greatestCommonDivisor(gregorianCycleDays, cadenceDays);
177
+ for (let attempts = 0; attempts < searchDays; attempts += 1) {
178
+ if (weeklyRecurrenceMatchesDate(candidateDate, start, args.recurrence)) {
179
+ const candidate = buildCandidate({
180
+ date: candidateDate,
181
+ recurrence: args.recurrence,
182
+ timezone: args.timezone
183
+ });
184
+ if (candidate !== void 0 && candidate > args.afterMs) return candidate;
185
+ }
186
+ candidateDate = addDays(candidateDate, 1);
187
+ }
188
+ return;
189
+ }
190
+ if (args.recurrence.frequency === "monthly") {
191
+ const startMonth = start.year * 12 + start.month - 1;
192
+ const searchMonth = searchFrom.year * 12 + searchFrom.month - 1;
193
+ let candidateMonth = startMonth + Math.ceil((searchMonth - startMonth) / interval) * interval;
194
+ const gregorianCycleMonths = 4800;
195
+ const candidateCount = gregorianCycleMonths / greatestCommonDivisor(gregorianCycleMonths, interval);
196
+ for (let attempts = 0; attempts < candidateCount; attempts += 1) {
197
+ const candidateDate = {
198
+ year: Math.floor(candidateMonth / 12),
199
+ month: candidateMonth % 12 + 1,
200
+ day: args.recurrence.dayOfMonth ?? 0
201
+ };
202
+ if (compareDate(candidateDate, searchFrom) >= 0) {
203
+ const candidate = buildCandidate({
204
+ date: candidateDate,
205
+ recurrence: args.recurrence,
206
+ timezone: args.timezone
207
+ });
208
+ if (candidate !== void 0 && candidate > args.afterMs) return candidate;
209
+ }
210
+ candidateMonth += interval;
211
+ }
212
+ return;
213
+ }
214
+ let candidateYear = start.year + Math.ceil((searchFrom.year - start.year) / interval) * interval;
215
+ const candidateCount = 400 / greatestCommonDivisor(400, interval);
216
+ for (let attempts = 0; attempts < candidateCount; attempts += 1) {
217
+ const candidateDate = {
218
+ year: candidateYear,
219
+ month: args.recurrence.month ?? 0,
220
+ day: args.recurrence.dayOfMonth ?? 0
221
+ };
222
+ if (compareDate(candidateDate, searchFrom) >= 0) {
223
+ const candidate = buildCandidate({
224
+ date: candidateDate,
225
+ recurrence: args.recurrence,
226
+ timezone: args.timezone
227
+ });
228
+ if (candidate !== void 0 && candidate > args.afterMs) return candidate;
229
+ }
230
+ candidateYear += interval;
231
+ }
232
+ }
233
+ /** Compute the first recurring calendar occurrence strictly after a timestamp. */
234
+ function getFirstRunAtMs(args) {
235
+ return findNextRunAtMs({
236
+ ...args,
237
+ searchFrom: getLocalDate(args.afterMs, args.timezone)
238
+ });
239
+ }
240
+ function compareDate(left, right) {
241
+ return Date.UTC(left.year, left.month - 1, left.day) - Date.UTC(right.year, right.month - 1, right.day);
242
+ }
243
+ function addDays(date, days) {
244
+ const next = new Date(Date.UTC(date.year, date.month - 1, date.day + days));
245
+ return {
246
+ year: next.getUTCFullYear(),
247
+ month: next.getUTCMonth() + 1,
248
+ day: next.getUTCDate()
249
+ };
250
+ }
251
+ function daysInMonth(year, month) {
252
+ return new Date(Date.UTC(year, month, 0)).getUTCDate();
253
+ }
254
+ function parseLocalDate(value) {
255
+ const match = /^(\d{4})-(\d{2})-(\d{2})$/.exec(value);
256
+ if (!match) return;
257
+ const year = Number(match[1]);
258
+ const month = Number(match[2]);
259
+ const day = Number(match[3]);
260
+ if (!Number.isInteger(year) || !Number.isInteger(month) || !Number.isInteger(day) || month < 1 || month > 12 || day < 1 || day > daysInMonth(year, month)) return;
261
+ return {
262
+ year,
263
+ month,
264
+ day
265
+ };
266
+ }
267
+ function getLocalDate(timestampMs, timezone) {
268
+ const parts = getZonedDateTimeParts(timestampMs, timezone);
269
+ return {
270
+ year: parts.year,
271
+ month: parts.month,
272
+ day: parts.day
273
+ };
274
+ }
275
+ function normalizeWeekdays(values) {
276
+ return [...new Set((values ?? []).filter((value) => value >= 0 && value <= 6))].sort((a, b) => a - b);
277
+ }
278
+ function buildCandidate(args) {
279
+ return localDateTimeToTimestampMs({
280
+ date: args.date,
281
+ time: args.recurrence.time,
282
+ timezone: args.timezone
283
+ });
284
+ }
285
+ /** Return the next fire time after a completed run, when the task recurs. */
286
+ function getNextRunAtMs(task, scheduledForMs, afterMs = scheduledForMs) {
287
+ if (task.schedule.kind !== "recurring") return;
288
+ const recurrence = task.schedule.recurrence;
289
+ if (!recurrence || !Number.isFinite(recurrence.interval) || recurrence.interval <= 0) return;
290
+ const timezone = task.schedule.timezone;
291
+ const afterDate = getLocalDate(afterMs, timezone);
292
+ const nextScheduledDate = addDays(getLocalDate(scheduledForMs, timezone), 1);
293
+ return findNextRunAtMs({
294
+ afterMs,
295
+ recurrence,
296
+ searchFrom: compareDate(afterDate, nextScheduledDate) < 0 ? nextScheduledDate : afterDate,
297
+ timezone
298
+ });
299
+ }
47
300
  // src/chat/scheduled-automations/schedule-intent.ts
48
301
  /**
49
302
  * Owns model-facing schedule intent and materializes it against the trusted
@@ -435,9 +688,10 @@ const automationTitleSchema = z.string().trim().min(1).max(60);
435
688
  /**
436
689
  * Instruction input for agent tools. The run does not see the request, so the
437
690
  * instruction names exact targets. It calls the creator "the Automation
438
- * creator". It names every other person with their mention.
691
+ * creator". It names every other person with their mention, also a requester
692
+ * who says "me".
439
693
  */
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.");
694
+ 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. Keep every person the user means, including \"me\". Write the creator as \"the Automation creator\"; each run knows who that is. Write anyone else, including a requester who is not the creator, as their Slack mention, such as <@U123>. Preserve the user's scope, targets, and constraints. Do not add permissions or side effects the user did not request.");
441
695
  /** Context input for agent tools. It follows the same rules as an instruction. */
442
696
  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 says. Use instruction rules: do not say where to post, write exact targets, call the creator \"the Automation creator\", and tag others as <@U123>.");
443
697
  const automationEditFieldsSchema = z.object({
@@ -771,4 +1025,92 @@ const automationEventCatalogSchema = z.array(z.object({
771
1025
  }).strict());
772
1026
  const automationScheduleIntentSchema = scheduleIntentSchema;
773
1027
  const automationSchedulePreviewSchema = scheduledAutomationSchema.pick({ schedule: true }).extend({ nextRunAtMs: z.number() }).strict();
774
- export { eventAutomationTriggerSchema as A, automationTaskColumns as B, eventAutomationSummarySchema as C, automationTitleSchema as D, automationInstructionToolSchema as E, compileScheduleIntent as F, automationTaskSchema as H, scheduleIntentFromTool as I, toolScheduleIntentSchema as L, scheduledAutomationSchema as M, scheduledRunSchema as N, taskOutcomeInputSchema as O, ScheduleIntentError as P, weekdaySchema as R, automationVersionSchema as S, automationContextToolSchema as T, automationTaskText as U, automationTaskDescription as V, automationSummarySchema as _, automationExecutionSchema as a, automationVersionListSchema as b, automationLifecycleSchema as c, automationParamsSchema as d, automationRunListSchema as f, automationSchedulePreviewSchema as g, automationScheduleIntentSchema as h, automationExecutionListSchema as i, SCHEDULED_AUTOMATION_SYSTEM_ACTOR as j, eventAutomationSchema as k, automationListQuerySchema as l, automationRunWindowsSchema as m, automationEditSchema as n, automationExecutionStatusDaySchema as o, automationRunSchema as p, automationEventCatalogSchema as r, automationExecutionStatusSchema as s, automationEditErrorSchema as t, automationListSchema as u, automationUpdateSchema as v, scheduledAutomationSummarySchema as w, automationVersionParamsSchema as x, automationVersionActivateSchema as y, automationSkillNameSchema as z };
1028
+ // src/chat/notifications/schedule.ts
1029
+ /**
1030
+ * Notification hours for one user.
1031
+ *
1032
+ * This module imports only zod and the browser-safe cadence helpers, so the
1033
+ * dashboard client bundle can use it.
1034
+ */
1035
+ const clockTimePattern = /^([01]\d|2[0-3]):[0-5]\d$/;
1036
+ /** Saved notification hours. Weekdays use 0 for Sunday, like `Date#getDay`. */
1037
+ const notificationScheduleSchema = z.object({
1038
+ /**
1039
+ * Follow the linked Slack user's notification schedule. The fields below
1040
+ * apply only when Junior cannot read it. Absent means on.
1041
+ */
1042
+ followSlack: z.boolean().optional(),
1043
+ /** When false, Junior sends push notifications at any time. */
1044
+ workingHoursOnly: z.boolean(),
1045
+ days: z.array(z.number().int().min(0).max(6)).max(7).refine((days) => new Set(days).size === days.length, { message: "Days must be unique." }),
1046
+ /** Local start time, `HH:MM`. */
1047
+ start: z.string().regex(clockTimePattern),
1048
+ /** Local end time, `HH:MM`. An end before the start crosses midnight. */
1049
+ end: z.string().regex(clockTimePattern),
1050
+ /** IANA timezone set by the user. Absent means the profile timezone. */
1051
+ timezone: z.string().min(1).max(64).refine(isValidTimeZone, { message: "Unknown timezone." }).optional()
1052
+ }).strict().refine((schedule) => schedule.start !== schedule.end, {
1053
+ message: "Start and end must differ.",
1054
+ path: ["end"]
1055
+ });
1056
+ /**
1057
+ * Default when a user has not saved a schedule: follow Slack, else
1058
+ * 09:00–18:00, Mon–Fri.
1059
+ */
1060
+ const DEFAULT_NOTIFICATION_SCHEDULE = {
1061
+ followSlack: true,
1062
+ workingHoursOnly: true,
1063
+ days: [
1064
+ 1,
1065
+ 2,
1066
+ 3,
1067
+ 4,
1068
+ 5
1069
+ ],
1070
+ start: "09:00",
1071
+ end: "18:00"
1072
+ };
1073
+ function clockMinutes(value) {
1074
+ const [hours, minutes] = value.split(":").map(Number);
1075
+ return hours * 60 + minutes;
1076
+ }
1077
+ const weekdayIndex = {
1078
+ Sun: 0,
1079
+ Mon: 1,
1080
+ Tue: 2,
1081
+ Wed: 3,
1082
+ Thu: 4,
1083
+ Fri: 5,
1084
+ Sat: 6
1085
+ };
1086
+ function localWeekdayAndMinutes(nowMs, timezone) {
1087
+ const parts = new Intl.DateTimeFormat("en-US", {
1088
+ hour: "2-digit",
1089
+ hourCycle: "h23",
1090
+ minute: "2-digit",
1091
+ timeZone: timezone,
1092
+ weekday: "short"
1093
+ }).formatToParts(new Date(nowMs));
1094
+ const value = (type) => parts.find((part) => part.type === type)?.value ?? "";
1095
+ const weekday = weekdayIndex[value("weekday")];
1096
+ if (weekday === void 0) throw new Error(`Could not read the weekday for timezone ${timezone}`);
1097
+ return {
1098
+ minutes: Number(value("hour")) % 24 * 60 + Number(value("minute")),
1099
+ weekday
1100
+ };
1101
+ }
1102
+ /**
1103
+ * Return whether a notification may be sent now. A window that crosses
1104
+ * midnight belongs to the day on which it starts.
1105
+ */
1106
+ function isWithinNotificationSchedule(schedule, timezone, nowMs) {
1107
+ if (!schedule.workingHoursOnly) return true;
1108
+ const { minutes, weekday } = localWeekdayAndMinutes(nowMs, timezone);
1109
+ const start = clockMinutes(schedule.start);
1110
+ const end = clockMinutes(schedule.end);
1111
+ if (start < end) return schedule.days.includes(weekday) && minutes >= start && minutes < end;
1112
+ if (minutes >= start) return schedule.days.includes(weekday);
1113
+ if (minutes < end) return schedule.days.includes((weekday + 6) % 7);
1114
+ return false;
1115
+ }
1116
+ export { automationTitleSchema as A, toolScheduleIntentSchema as B, automationVersionListSchema as C, scheduledAutomationSummarySchema as D, eventAutomationSummarySchema as E, scheduledAutomationSchema as F, isValidTimeZone as G, getFirstRunAtMs as H, scheduledRunSchema as I, automationTaskDescription as J, automationSkillNameSchema as K, ScheduleIntentError as L, eventAutomationSchema as M, eventAutomationTriggerSchema as N, automationContextToolSchema as O, SCHEDULED_AUTOMATION_SYSTEM_ACTOR as P, compileScheduleIntent as R, automationVersionActivateSchema as S, automationVersionSchema as T, getNextRunAtMs as U, weekdaySchema as V, getZonedDateTimeParts as W, automationTaskText as X, automationTaskSchema as Y, automationRunWindowsSchema as _, automationEditSchema as a, automationSummarySchema as b, automationExecutionSchema as c, automationLifecycleSchema as d, automationListQuerySchema as f, automationRunSchema as g, automationRunListSchema as h, automationEditErrorSchema as i, taskOutcomeInputSchema as j, automationInstructionToolSchema as k, automationExecutionStatusDaySchema as l, automationParamsSchema as m, isWithinNotificationSchedule as n, automationEventCatalogSchema as o, automationListSchema as p, automationTaskColumns as q, notificationScheduleSchema as r, automationExecutionListSchema as s, DEFAULT_NOTIFICATION_SCHEDULE as t, automationExecutionStatusSchema as u, automationScheduleIntentSchema as v, automationVersionParamsSchema as w, automationUpdateSchema as x, automationSchedulePreviewSchema as y, scheduleIntentFromTool as z };