@sentry/junior 0.304.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.
- package/dist/{adapter-context-B1IpoELr.js → adapter-context-CnY-i32r.js} +2 -2
- package/dist/{admin-BnVFGo_z.js → admin-BLLdLnXh.js} +2 -2
- package/dist/{agent-runner-CoEeZSRh.js → agent-runner-BaLjEjPR.js} +312 -204
- package/dist/api/schema.d.ts +2 -2
- package/dist/api/schema.js +7 -8
- package/dist/api.d.ts +19 -4
- package/dist/api.js +137 -40
- package/dist/{app-Cs157Zc5.d.ts → app-DvYbM9UD.d.ts} +2 -2
- package/dist/app.d.ts +1 -1
- package/dist/app.js +489 -445
- package/dist/{background-compaction-queue-WLPNSF_b.js → background-compaction-queue-D2wzxtGU.js} +7 -3
- package/dist/{briefs-CagVVefw.js → briefs-DvyzXfrF.js} +3 -3
- package/dist/{catalog-runtime-B8ZXvXWm.js → catalog-runtime-B1R-nHd3.js} +1 -1
- package/dist/cli/chat.js +15 -15
- package/dist/cli/check.js +3 -3
- package/dist/cli/main.js +3 -3
- package/dist/cli/plugins.js +4 -4
- package/dist/cli/snapshot-create.js +5 -5
- package/dist/cli/upgrade.d.ts +1 -1
- package/dist/cli/upgrade.js +3 -3
- package/dist/{config-DdO1BNcw.js → config-DUD-zMvp.js} +111 -13
- package/dist/{connections-D20kp0j5.js → connections-CDhsqPcC.js} +6 -6
- package/dist/{continue-in-slack-BKEVMBj1.js → continue-in-slack-BXQizz9o.js} +5 -5
- package/dist/{conversation-BOqdRtUx.js → conversation--f85g4zL.js} +132 -132
- package/dist/{conversation-feed-CgpgP7yi.js → conversation-feed-BNs9KiqC.js} +1 -1
- package/dist/{conversation-privacy-L1SK_v0V.js → conversation-privacy-YE54gMN8.js} +1 -1
- package/dist/{conversation-turn-BptVJylj.js → conversation-turn-BzdmrHb0.js} +22 -40
- package/dist/{credential-sync-D1J1CGzL.js → credential-sync-Cdm-e1vJ.js} +14 -13
- package/dist/{db-EKJnkrIb.js → db-DV2ZUb1Y.js} +90 -11
- package/dist/{db-zbN5ZV_o.d.ts → db-pH357Dkt.d.ts} +1 -1
- package/dist/{executor-CoIZmFK8.js → executor-CjNhwwnj.js} +47 -4
- package/dist/{history-m2-ceTTX.js → history-N7IVbUom.js} +5 -1
- package/dist/{install-BT2Pf6HP.js → install-DbD7C5td.js} +2 -2
- package/dist/instrumentation.js +2 -2
- package/dist/{lineage-C5DGQCS_.js → lineage-BFdIPb3o.js} +2 -2
- package/dist/{logging-QSZuMcvo.js → logging-oYpJYr-S.js} +1 -1
- package/dist/{message-TtxftRHj.js → message-BBPcMKJY.js} +8 -8
- package/dist/{model-input-BHXfA29g.js → model-input-DYYF3a8B.js} +3 -3
- package/dist/nitro.d.ts +1 -1
- package/dist/nitro.js +4 -4
- package/dist/{oauth-callback-server-B0enqHtZ.js → oauth-callback-server-C7Q987su.js} +2 -2
- package/dist/{projection-CNKK7doO.js → projection-CWXDE0f6.js} +7740 -6165
- package/dist/{prompt-DSjhoKu5.js → prompt-P3eRqO8C.js} +15 -7
- package/dist/{queue-CDxkit82.js → queue-7FSijgqG.js} +4 -4
- package/dist/{registry-DBDNUUmz.js → registry-1pzXmplY.js} +1 -1
- package/dist/{resolve-CQLhMWSu.js → resolve-n87oXY-d.js} +3 -3
- package/dist/{result-B-pauj42.js → result-BmF9v9bv.js} +9 -9
- package/dist/{runner-B3KxKks5.js → runner-4j7ZsxP5.js} +13 -15
- package/dist/{sandbox-egress-signals-DJJX9ClG.js → sandbox-egress-signals-BRQI8HvT.js} +1 -1
- package/dist/{automation-CuA3yEcD.js → schedule-CHPWQn-x.js} +347 -5
- package/dist/{schema-CKcu-IK6.d.ts → schema-CVbIjrF3.d.ts} +71 -1
- package/dist/{schema-Bx0Mlo32.js → schema-D7iIEh6t.js} +52 -6
- package/dist/{service-account-DQLqkSVv.js → service-account-BDQ9xzta.js} +3 -3
- package/dist/{service-account-2HmlNPvy.js → service-account-DzQiOmqa.js} +5 -5
- package/dist/{session-stop-DEeZKqbX.js → session-stop-BQxgHR4X.js} +919 -168
- package/dist/{skills-2UrD7JkN.js → skills-CPf4vNuC.js} +2 -2
- package/dist/{slack-conversation-unfurl-Dd129Uov.js → slack-conversation-unfurl-B1KEptUg.js} +10 -9
- package/dist/{spawn-eMho9HDJ.js → spawn-CjGddiAU.js} +6 -6
- package/dist/{state-Bveuc4Zh.js → state-9wfj6aSD.js} +4 -4
- package/dist/{stop-D_ltJLDS.js → stop-CsQGuN5n.js} +62 -118
- package/dist/{store-COeYnPL_.js → store-Dz3YZ7gQ.js} +5 -5
- package/dist/{task-queue-CBIDXZpV.js → task-queue-CFlrJguF.js} +3 -3
- package/dist/{task-runner-CJF7zIJL.js → task-runner-frzlUvFD.js} +8 -9
- package/dist/{thread-context-Cg0jt0aE.js → thread-context-C4QuZlM8.js} +8 -91
- package/dist/turn-session-routing-BXaubz2w.js +244 -0
- package/dist/{turn-user-message-tcom1RYd.js → turn-user-message-DNC0eRZ7.js} +3 -3
- package/dist/users-XCCKn3xW.js +181 -0
- package/dist/{validation-EU91JwIT.js → validation-L5fdjmFX.js} +1 -1
- package/dist/{version-BYRPhY5G.js → version-BFmuwgxP.js} +1 -1
- package/dist/version.js +1 -1
- package/dist/{viewer-Cf8ISkAc.js → viewer-DKOeHpv3.js} +3 -3
- package/dist/{warmup-TgY4S1vx.js → warmup-mTMIatCV.js} +271 -279
- package/dist/{web-message-id-lNodcCOI.js → web-message-id-CUaSiGme.js} +16 -1
- package/dist/{worker-C6Uq4OKD.js → worker-Bz4KNxjI.js} +7 -7
- package/migrations/0114_plan_items.sql +22 -0
- package/migrations/meta/0114_snapshot.json +5203 -0
- package/migrations/meta/_journal.json +7 -0
- package/package.json +6 -6
- package/dist/schedule-cP0AACm1.js +0 -344
- package/dist/turn-session-routing-CaY3Tp8m.js +0 -1792
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { A as searchWeb$1, C as completeObject$1, D as generateImages$1, E as gatewayCostUsd,
|
|
2
|
-
import { E as withSpan, _ as runBestEffort, a as extractGenAiUsageSummary, i as extractGenAiUsageAttributes, p as logException } from "./logging-
|
|
3
|
-
import { r as getConversationEventStore,
|
|
4
|
-
import {
|
|
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
|
|
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
|
|
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 {
|
|
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-
|
|
2
|
-
import { h as logWarn } from "./logging-
|
|
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-
|
|
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-
|
|
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-
|
|
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-
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
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-
|
|
3
|
-
import {
|
|
4
|
-
import { a as EVENT_SYSTEM_ACTOR } from "./prompt-
|
|
5
|
-
import { f as credentialContextForActor } from "./registry-
|
|
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-
|
|
7
|
-
import { _ as getConversationWorkState, r as appendAndEnqueueInboundMessage } from "./store-
|
|
8
|
-
import { $t as
|
|
9
|
-
import {
|
|
10
|
-
import { C as
|
|
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 {
|
|
2
|
-
import {
|
|
3
|
-
import { A as
|
|
4
|
-
import { S as setTags, T as withLogContext, p as logException } from "./logging-
|
|
5
|
-
import { n as scheduleSessionCompletedPluginTasks, t as processPluginTask } from "./task-runner-
|
|
6
|
-
import { a as getPersistedThreadState, c as coerceThreadConversationState, i as getPersistedSandboxState, s as persistThreadStateById } from "./turn-session-routing-
|
|
7
|
-
import { _ as ConversationTurnLifecycleService, g as startActiveTurn, h as markTurnFailed } from "./turn-user-message-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
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
|
-
},
|
|
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 {
|
|
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 {
|
|
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.
|
|
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
|
-
|
|
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 };
|