diff --git a/apps/sim/components/emails/notifications/deprecated-model-email.tsx b/apps/sim/components/emails/notifications/deprecated-model-email.tsx new file mode 100644 index 00000000000..7e085055ee7 --- /dev/null +++ b/apps/sim/components/emails/notifications/deprecated-model-email.tsx @@ -0,0 +1,51 @@ +import { Section, Text } from '@react-email/components' +import { baseStyles } from '@/components/emails/_styles' +import { EmailButton, EmailLayout } from '@/components/emails/components' + +interface DeprecatedModelEmailProps { + recipientName?: string + workflowName: string + model: string + /** Deep link to the workflow. Absent when the workspace is unknown. */ + workflowLink?: string +} + +/** + * Sent when a workflow runs a model its provider has retired, so the owner can + * switch it before more runs fail. + */ +export function DeprecatedModelEmail({ + recipientName, + workflowName, + model, + workflowLink, +}: DeprecatedModelEmailProps) { + return ( + + {recipientName ? `Hi ${recipientName},` : 'Hi,'} + + + Your workflow {workflowName} uses {model}, which its provider has retired. Blocks that call + it will fail until you pick a different model. + + +
+ What to do + + Open the workflow, select a current model in each block that uses {model}, and deploy + again if the workflow is deployed. + +
+ + {workflowLink ? Open workflow : null} + +
+ + + Sent to the workflow's owner and workspace admins, at most once a month per workflow. + + + ) +} + +export default DeprecatedModelEmail diff --git a/apps/sim/components/emails/notifications/index.ts b/apps/sim/components/emails/notifications/index.ts index 931a13ff85b..e8e653f79a0 100644 --- a/apps/sim/components/emails/notifications/index.ts +++ b/apps/sim/components/emails/notifications/index.ts @@ -1,4 +1,5 @@ export { PermissionAccessRequestEmail } from '@/components/emails/notifications/permission-access-request-email' +export { DeprecatedModelEmail } from './deprecated-model-email' export { ScheduleDisabledEmail } from './schedule-disabled-email' export { type SubprocessorChange, diff --git a/apps/sim/components/emails/render.ts b/apps/sim/components/emails/render.ts index 8008c48070e..7a0ec834916 100644 --- a/apps/sim/components/emails/render.ts +++ b/apps/sim/components/emails/render.ts @@ -29,6 +29,7 @@ import { WorkspaceInvitationEmail, } from '@/components/emails/invitations' import { + DeprecatedModelEmail, PermissionAccessRequestEmail, ScheduleDisabledEmail, type SubprocessorChange, @@ -176,6 +177,15 @@ export async function renderScheduleDisabledEmail(params: { return await render(ScheduleDisabledEmail(params)) } +export async function renderDeprecatedModelEmail(params: { + recipientName?: string + workflowName: string + model: string + workflowLink?: string +}): Promise { + return await render(DeprecatedModelEmail(params)) +} + export async function renderSubprocessorChangeEmail(params: { recipientName?: string changes: SubprocessorChange[] diff --git a/apps/sim/components/emails/subjects.ts b/apps/sim/components/emails/subjects.ts index 16860f7c6e3..3572424736d 100644 --- a/apps/sim/components/emails/subjects.ts +++ b/apps/sim/components/emails/subjects.ts @@ -24,6 +24,7 @@ export type EmailSubjectType = | 'abandoned-checkout' | 'free-tier-exhausted' | 'schedule-disabled' + | 'deprecated-model' | 'subprocessor-change' | 'onboarding-followup' | 'welcome' @@ -79,6 +80,8 @@ export function getEmailSubject(type: EmailSubjectType): string { return `You've run out of free credits on Sim` case 'schedule-disabled': return `A schedule was turned off on Sim` + case 'deprecated-model': + return `A workflow uses a retired model on Sim` case 'subprocessor-change': return `Upcoming change to Sim sub-processors` case 'onboarding-followup': diff --git a/apps/sim/executor/handlers/agent/handler.ts b/apps/sim/executor/handlers/agent/handler.ts index b509d30499f..c551492518b 100644 --- a/apps/sim/executor/handlers/agent/handler.ts +++ b/apps/sim/executor/handlers/agent/handler.ts @@ -102,6 +102,7 @@ import type { UserFile, } from '@/executor/types' import { collectBlockData } from '@/executor/utils/block-data' +import { noticeDeprecatedModel } from '@/executor/utils/deprecated-model-notice' import { stringifyJSON } from '@/executor/utils/json' import { BLOCK_MODEL_CREDENTIAL_FIELDS, @@ -2929,6 +2930,7 @@ export class AgentBlockHandler implements BlockHandler { ): Promise { const providerId = providerRequest.provider const model = providerRequest.model + noticeDeprecatedModel(ctx, model) try { const credentials: BlockModelCredentials = (await savedCredentials) ?? {} diff --git a/apps/sim/executor/handlers/generic/handler.test.ts b/apps/sim/executor/handlers/generic/handler.test.ts index bf832d82722..133a44b1e55 100644 --- a/apps/sim/executor/handlers/generic/handler.test.ts +++ b/apps/sim/executor/handlers/generic/handler.test.ts @@ -32,6 +32,14 @@ import { mcpRunOperationTool } from '@/tools/mcp/run-operation' import type { ToolConfig } from '@/tools/types' import { getTool } from '@/tools/utils' +const { mockNotifyDeprecatedModelUsed } = vi.hoisted(() => ({ + mockNotifyDeprecatedModelUsed: vi.fn(), +})) + +vi.mock('@/lib/workflows/notifications/deprecated-model', () => ({ + notifyDeprecatedModelUsed: (...args: unknown[]) => mockNotifyDeprecatedModelUsed(...args), +})) + const mockGetBlock = vi.mocked(getBlock) const mockGetTool = vi.mocked(getTool) const mockExecuteTool = executeTool as Mock @@ -96,6 +104,29 @@ describe('GenericBlockHandler', () => { mockExecuteTool.mockResolvedValue({ success: true, output: { customResult: 'OK' } }) }) + describe('deprecated model notice', () => { + beforeEach(() => { + mockNotifyDeprecatedModelUsed.mockReset().mockResolvedValue(undefined) + }) + + it('notifies when a tool-backed block runs a deprecated model', async () => { + await handler.execute(mockContext, mockBlock, { model: 'claude-sonnet-4-0' }) + + expect(mockNotifyDeprecatedModelUsed).toHaveBeenCalledWith({ + workflowId: 'test-workflow-id', + model: 'claude-sonnet-4-0', + }) + }) + + it('stays silent for a dry run or workflow test', async () => { + await handler.execute({ ...mockContext, sideEffects: {} } as ExecutionContext, mockBlock, { + model: 'claude-sonnet-4-0', + }) + + expect(mockNotifyDeprecatedModelUsed).not.toHaveBeenCalled() + }) + }) + describe('Flow field values', () => { const writes: unknown[] = [] diff --git a/apps/sim/executor/handlers/generic/handler.ts b/apps/sim/executor/handlers/generic/handler.ts index 1cc72f004d9..e08b161dc68 100644 --- a/apps/sim/executor/handlers/generic/handler.ts +++ b/apps/sim/executor/handlers/generic/handler.ts @@ -1,11 +1,13 @@ import { isDeepStrictEqual } from 'node:util' import { createLogger } from '@sim/logger' +import { toStringOrNull } from '@sim/utils/coerce' import { toError } from '@sim/utils/errors' import { isPlainRecord } from '@sim/utils/object' import { adoptToolFailure } from '@/lib/core/errors/failure-log' import { getBlock } from '@/blocks/index' import { isMcpTool } from '@/executor/constants' import type { BlockHandler, BlockNodeMetadata, ExecutionContext } from '@/executor/types' +import { noticeDeprecatedModel } from '@/executor/utils/deprecated-model-notice' import { readStatusCode } from '@/executor/utils/errors' import { mayBeJsonText } from '@/executor/utils/json' import { prepareResolvedSecretProjectedInputs } from '@/executor/utils/resolved-secret-input-projection' @@ -310,6 +312,8 @@ export class GenericBlockHandler implements BlockHandler { } } + noticeDeprecatedModel(ctx, toStringOrNull(finalInputs.model)) + try { const result = await executeTool( block.config.tool, diff --git a/apps/sim/executor/utils/deprecated-model-notice.test.ts b/apps/sim/executor/utils/deprecated-model-notice.test.ts new file mode 100644 index 00000000000..51bda4ee1bd --- /dev/null +++ b/apps/sim/executor/utils/deprecated-model-notice.test.ts @@ -0,0 +1,44 @@ +import { beforeEach, describe, expect, it, vi } from 'vitest' + +const { mockNotifyDeprecatedModelUsed } = vi.hoisted(() => ({ + mockNotifyDeprecatedModelUsed: vi.fn(), +})) + +vi.mock('@/lib/workflows/notifications/deprecated-model', () => ({ + notifyDeprecatedModelUsed: (...args: unknown[]) => mockNotifyDeprecatedModelUsed(...args), +})) + +import type { ExecutionContext } from '@/executor/types' +import { noticeDeprecatedModel } from '@/executor/utils/deprecated-model-notice' + +const DEPRECATED_MODEL = 'claude-sonnet-4-0' + +describe('noticeDeprecatedModel', () => { + beforeEach(() => { + mockNotifyDeprecatedModelUsed.mockReset().mockResolvedValue(undefined) + }) + + it('notifies when a live run calls a deprecated model', () => { + noticeDeprecatedModel({ workflowId: 'wf-1' } as ExecutionContext, DEPRECATED_MODEL) + + expect(mockNotifyDeprecatedModelUsed).toHaveBeenCalledWith({ + workflowId: 'wf-1', + model: DEPRECATED_MODEL, + }) + }) + + it('stays silent for a dry run or workflow test', () => { + noticeDeprecatedModel( + { workflowId: 'wf-1', sideEffects: {} } as ExecutionContext, + DEPRECATED_MODEL + ) + + expect(mockNotifyDeprecatedModelUsed).not.toHaveBeenCalled() + }) + + it('stays silent for a current model', () => { + noticeDeprecatedModel({ workflowId: 'wf-1' } as ExecutionContext, 'claude-sonnet-5-5') + + expect(mockNotifyDeprecatedModelUsed).not.toHaveBeenCalled() + }) +}) diff --git a/apps/sim/executor/utils/deprecated-model-notice.ts b/apps/sim/executor/utils/deprecated-model-notice.ts new file mode 100644 index 00000000000..ebaf75e6f5d --- /dev/null +++ b/apps/sim/executor/utils/deprecated-model-notice.ts @@ -0,0 +1,18 @@ +import { notifyDeprecatedModelUsed } from '@/lib/workflows/notifications/deprecated-model' +import type { ExecutionContext } from '@/executor/types' +import { getModelSunsetStatus } from '@/providers/models' + +/** + * Starts the deprecated-model email for a block's model call, without awaiting it: + * Agent, Router and Evaluator calls, and tool-backed blocks with a `model` input + * (Translate's `llm_chat`). + * Runs with a side-effect policy (dry runs, workflow tests) never send it. + */ +export function noticeDeprecatedModel( + ctx: ExecutionContext, + model: string | null | undefined +): void { + if (!model || !ctx.workflowId || ctx.sideEffects) return + if (getModelSunsetStatus(model) !== 'deprecated') return + void notifyDeprecatedModelUsed({ workflowId: ctx.workflowId, model }) +} diff --git a/apps/sim/executor/utils/provider-request.ts b/apps/sim/executor/utils/provider-request.ts index 622d5f77a35..7d110c923fa 100644 --- a/apps/sim/executor/utils/provider-request.ts +++ b/apps/sim/executor/utils/provider-request.ts @@ -1,6 +1,7 @@ import { createLogger } from '@sim/logger' import { checkWorkspaceAccess } from '@/lib/workspaces/permissions/utils' import type { ExecutionContext } from '@/executor/types' +import { noticeDeprecatedModel } from '@/executor/utils/deprecated-model-notice' import type { ResolvedSecretTraceRegistry } from '@/executor/utils/resolved-secret-trace-registry' import { executeProviderRequest } from '@/providers' import type { ProviderRequest, ProviderResponse } from '@/providers/types' @@ -40,6 +41,8 @@ export async function executeBlockProviderRequest({ } } + noticeDeprecatedModel(ctx, request.model) + /** * No `executionContext`: it is only inherited by model-emitted tool calls, and the route * this replaces never carried one. The whole context is omitted when there is no registry diff --git a/apps/sim/lib/workflows/notifications/deprecated-model.test.ts b/apps/sim/lib/workflows/notifications/deprecated-model.test.ts new file mode 100644 index 00000000000..3da36977e6a --- /dev/null +++ b/apps/sim/lib/workflows/notifications/deprecated-model.test.ts @@ -0,0 +1,118 @@ +import { queueTableRows, resetDbChainMock, schemaMock, urlsMockFns } from '@sim/testing' +import { emailMailerMock, emailMailerMockFns } from '@sim/testing/mocks/email-mailer.mock' +import { emailTemplatesMock, emailTemplatesMockFns } from '@sim/testing/mocks/email-templates.mock' +import { permissionsMock, permissionsMockFns } from '@sim/testing/mocks/permissions.mock' +import { redisConfigMockFns, resetRedisConfigMock } from '@sim/testing/mocks/redis-config.mock' +import { beforeEach, describe, expect, it, vi } from 'vitest' + +vi.mock('@/lib/messaging/email/mailer', () => emailMailerMock) +vi.mock('@/components/emails', () => emailTemplatesMock) +vi.mock('@/lib/workspaces/permissions/utils', () => permissionsMock) + +import { notifyDeprecatedModelUsed } from '@/lib/workflows/notifications/deprecated-model' + +const sendEmailSpy = emailMailerMockFns.mockSendEmail +const acquireLockMock = redisConfigMockFns.mockAcquireLock +const extendLockMock = redisConfigMockFns.mockExtendLock +const releaseLockMock = redisConfigMockFns.mockReleaseLock + +const WORKFLOW_ROW = { name: 'Support triage', userId: 'owner-1', workspaceId: 'ws-1' } +const OWNER = { email: 'owner@example.com', name: 'Ada' } +const NOTICE = { workflowId: 'wf-1', model: 'claude-sonnet-4-5' } + +describe('notifyDeprecatedModelUsed', () => { + beforeEach(() => { + resetDbChainMock() + resetRedisConfigMock() + sendEmailSpy.mockReset().mockResolvedValue({ success: true }) + emailTemplatesMockFns.mockRenderDeprecatedModelEmail.mockResolvedValue('') + urlsMockFns.mockGetBaseUrl.mockReturnValue('https://app.sim.ai') + permissionsMockFns.mockGetUsersWithPermissions.mockResolvedValue([ + { userId: 'u-a', email: 'admin@example.com', name: 'Admin', permissionType: 'admin' }, + { userId: 'u-w', email: 'writer@example.com', name: 'Writer', permissionType: 'write' }, + ]) + }) + + it('emails the owner and workspace admins once the notice is claimed', async () => { + queueTableRows(schemaMock.workflow, [WORKFLOW_ROW]) + queueTableRows(schemaMock.user, [OWNER]) + + await notifyDeprecatedModelUsed(NOTICE) + + expect(sendEmailSpy.mock.calls.map(([options]) => (options as { to: string }).to)).toEqual([ + 'owner@example.com', + 'admin@example.com', + ]) + expect(extendLockMock).toHaveBeenCalledWith( + 'deprecated-model-notice:v1:wf-1:claude-sonnet-4-5', + expect.any(String), + 30 * 24 * 60 * 60 + ) + expect(releaseLockMock).not.toHaveBeenCalled() + }) + + it('releases the claim so a later run retries when no email is delivered', async () => { + queueTableRows(schemaMock.workflow, [WORKFLOW_ROW]) + queueTableRows(schemaMock.user, [OWNER]) + sendEmailSpy.mockResolvedValue({ success: false, message: 'provider down' }) + + await notifyDeprecatedModelUsed(NOTICE) + + expect(releaseLockMock).toHaveBeenCalledWith( + 'deprecated-model-notice:v1:wf-1:claude-sonnet-4-5', + acquireLockMock.mock.calls[0][1] + ) + expect(extendLockMock).not.toHaveBeenCalled() + }) + + it('keeps the monthly claim when only some recipients were reached', async () => { + queueTableRows(schemaMock.workflow, [WORKFLOW_ROW]) + queueTableRows(schemaMock.user, [OWNER]) + sendEmailSpy + .mockResolvedValueOnce({ success: true }) + .mockResolvedValueOnce({ success: false, message: 'provider down' }) + + await notifyDeprecatedModelUsed(NOTICE) + + expect(extendLockMock).toHaveBeenCalledTimes(1) + expect(releaseLockMock).not.toHaveBeenCalled() + }) + + it('re-claims the month when the sending claim lapsed mid-send', async () => { + queueTableRows(schemaMock.workflow, [WORKFLOW_ROW]) + queueTableRows(schemaMock.user, [OWNER]) + extendLockMock.mockResolvedValue(false) + + await notifyDeprecatedModelUsed(NOTICE) + + expect(acquireLockMock).toHaveBeenLastCalledWith( + 'deprecated-model-notice:v1:wf-1:claude-sonnet-4-5', + acquireLockMock.mock.calls[0][1], + 30 * 24 * 60 * 60 + ) + }) + + it('sends nothing while an earlier notice for the same workflow and model is live', async () => { + acquireLockMock.mockResolvedValue(false) + queueTableRows(schemaMock.workflow, [WORKFLOW_ROW]) + + await notifyDeprecatedModelUsed(NOTICE) + + expect(sendEmailSpy).not.toHaveBeenCalled() + }) + + it('never throws into the model call when Redis fails', async () => { + acquireLockMock.mockRejectedValue(new Error('redis down')) + + await expect(notifyDeprecatedModelUsed(NOTICE)).resolves.toBeUndefined() + expect(sendEmailSpy).not.toHaveBeenCalled() + }) + + it('sends nothing when the workflow no longer exists', async () => { + queueTableRows(schemaMock.workflow, []) + + await notifyDeprecatedModelUsed(NOTICE) + + expect(sendEmailSpy).not.toHaveBeenCalled() + }) +}) diff --git a/apps/sim/lib/workflows/notifications/deprecated-model.ts b/apps/sim/lib/workflows/notifications/deprecated-model.ts new file mode 100644 index 00000000000..3fb8bc335ac --- /dev/null +++ b/apps/sim/lib/workflows/notifications/deprecated-model.ts @@ -0,0 +1,137 @@ +import { db } from '@sim/db' +import { workflow } from '@sim/db/schema' +import { createLogger } from '@sim/logger' +import { generateShortId } from '@sim/utils/id' +import { eq } from 'drizzle-orm' +import { getEmailSubject, renderDeprecatedModelEmail } from '@/components/emails' +import { acquireLock, extendLock, releaseLock } from '@/lib/core/config/redis' +import { getBaseUrl } from '@/lib/core/utils/urls' +import { sendEmail } from '@/lib/messaging/email/mailer' +import { resolveOwnerAndAdminRecipients } from '@/lib/workflows/notifications/recipients' + +const logger = createLogger('DeprecatedModelNotifications') + +const MAX_DEPRECATED_MODEL_RECIPIENTS = 10 + +/** A workflow that keeps running a retired model is re-notified at most this often. */ +const NOTICE_INTERVAL_SECONDS = 30 * 24 * 60 * 60 + +/** + * Holds the notice while it is sent, so concurrent runs don't send it twice. Sized + * well past the worst case of {@link MAX_DEPRECATED_MODEL_RECIPIENTS} sequential sends. + */ +const SENDING_CLAIM_SECONDS = 30 * 60 + +function noticeKey(workflowId: string, model: string): string { + return `deprecated-model-notice:v1:${workflowId}:${model.toLowerCase()}` +} + +/** + * Emails a workflow's owner and its workspace admins that the workflow calls a + * model its provider has retired, at most once per workflow and model per + * {@link NOTICE_INTERVAL_SECONDS}. The claim is short while sending and only + * extended once an email is delivered, so an attempt that reaches nobody retries on a + * later run. The notice is per workflow, not per recipient: once anyone responsible + * for the workflow has it, a recipient whose send failed is not retried. + * + * Best-effort by contract: this never throws, because the model call that + * triggered it must proceed exactly as it would without the notice. + */ +export async function notifyDeprecatedModelUsed(params: { + workflowId: string + model: string +}): Promise { + const { workflowId, model } = params + const key = noticeKey(workflowId, model) + const claimToken = generateShortId() + + try { + const claimed = await acquireLock(key, claimToken, SENDING_CLAIM_SECONDS) + if (!claimed) return + } catch (error) { + logger.error('Failed to claim deprecated-model notice', error, { workflowId, model }) + return + } + + let delivered = 0 + try { + delivered = await sendNotice(workflowId, model) + } catch (error) { + logger.error('Failed to notify deprecated model use', error, { workflowId, model }) + } + + try { + if (delivered === 0) { + await releaseLock(key, claimToken) + } else if (!(await extendLock(key, claimToken, NOTICE_INTERVAL_SECONDS))) { + // The sending claim lapsed mid-send; re-claim unless another run already has. + await acquireLock(key, claimToken, NOTICE_INTERVAL_SECONDS) + } + } catch (error) { + logger.error('Failed to settle deprecated-model notice claim', error, { workflowId, model }) + } +} + +/** Sends the notice to every recipient and returns how many deliveries succeeded. */ +async function sendNotice(workflowId: string, model: string): Promise { + const rows = await db + .select({ + name: workflow.name, + userId: workflow.userId, + workspaceId: workflow.workspaceId, + }) + .from(workflow) + .where(eq(workflow.id, workflowId)) + .limit(1) + + const row = rows[0] + if (!row) return 0 + + const recipients = await resolveOwnerAndAdminRecipients( + row.userId, + row.workspaceId, + MAX_DEPRECATED_MODEL_RECIPIENTS + ) + if (recipients.length === 0) { + logger.warn('Deprecated model in use but no recipients could be resolved', { + workflowId, + model, + }) + return 0 + } + + const workflowLink = row.workspaceId + ? `${getBaseUrl()}/workspace/${row.workspaceId}/w/${workflowId}` + : undefined + const subject = getEmailSubject('deprecated-model') + + let delivered = 0 + for (const recipient of recipients) { + try { + const html = await renderDeprecatedModelEmail({ + recipientName: recipient.name ?? undefined, + workflowName: row.name, + model, + workflowLink, + }) + const result = await sendEmail({ + to: recipient.email, + subject, + html, + emailType: 'notifications', + }) + if (result.success) delivered++ + else logger.warn('Deprecated-model email was not delivered', { workflowId, model }) + } catch (error) { + logger.error('Failed to send deprecated-model email', error, { workflowId, model }) + } + } + + logger.info('Sent deprecated-model notification', { + workflowId, + model, + recipientCount: recipients.length, + delivered, + }) + return delivered +} diff --git a/apps/sim/lib/workflows/notifications/recipients.ts b/apps/sim/lib/workflows/notifications/recipients.ts new file mode 100644 index 00000000000..bc04d010af9 --- /dev/null +++ b/apps/sim/lib/workflows/notifications/recipients.ts @@ -0,0 +1,64 @@ +import { db } from '@sim/db' +import { user } from '@sim/db/schema' +import { createLogger } from '@sim/logger' +import { eq } from 'drizzle-orm' +import { getUsersWithPermissions } from '@/lib/workspaces/permissions/utils' + +const logger = createLogger('WorkflowNotificationRecipients') + +export interface NotificationRecipient { + email: string + name: string | null +} + +/** + * The owner first, then the workspace admins, deduped on lowercased email so + * someone who is both receives one message, and capped at `limit`. + * + * The two lookups are independent and each failure is contained: losing one + * must not zero out the other, or a blip in either turns the notice back into + * the silent event it exists to prevent. + */ +export async function resolveOwnerAndAdminRecipients( + ownerUserId: string | null, + workspaceId: string | null, + limit: number +): Promise { + const recipients: NotificationRecipient[] = [] + const seen = new Set() + + const add = (email: string | null, name: string | null) => { + if (!email) return + const key = email.toLowerCase() + if (seen.has(key)) return + seen.add(key) + recipients.push({ email, name }) + } + + if (ownerUserId) { + try { + const ownerRows = await db + .select({ email: user.email, name: user.name }) + .from(user) + .where(eq(user.id, ownerUserId)) + .limit(1) + add(ownerRows[0]?.email ?? null, ownerRows[0]?.name ?? null) + } catch (error) { + logger.error('Failed to resolve owner for notification', error, { ownerUserId }) + } + } + + if (workspaceId) { + try { + const members = await getUsersWithPermissions(workspaceId) + for (const member of members) { + if (member.permissionType !== 'admin') continue + add(member.email, member.name) + } + } catch (error) { + logger.error('Failed to resolve workspace admins for notification', error, { workspaceId }) + } + } + + return recipients.slice(0, limit) +} diff --git a/apps/sim/lib/workflows/schedules/disable-notifications.ts b/apps/sim/lib/workflows/schedules/disable-notifications.ts index af646fc3578..e56b7a9cad5 100644 --- a/apps/sim/lib/workflows/schedules/disable-notifications.ts +++ b/apps/sim/lib/workflows/schedules/disable-notifications.ts @@ -1,12 +1,12 @@ import { db } from '@sim/db' -import { user, workflow, workflowSchedule } from '@sim/db/schema' +import { workflow, workflowSchedule } from '@sim/db/schema' import { createLogger } from '@sim/logger' import { eq } from 'drizzle-orm' import { getEmailSubject, renderScheduleDisabledEmail } from '@/components/emails' import { getBaseUrl } from '@/lib/core/utils/urls' import { sendEmail } from '@/lib/messaging/email/mailer' +import { resolveOwnerAndAdminRecipients } from '@/lib/workflows/notifications/recipients' import type { ScheduleDisableReason } from '@/lib/workflows/schedules/disable-reasons' -import { getUsersWithPermissions } from '@/lib/workspaces/permissions/utils' const logger = createLogger('ScheduleDisableNotifications') @@ -16,11 +16,6 @@ const logger = createLogger('ScheduleDisableNotifications') */ const MAX_SCHEDULE_DISABLE_RECIPIENTS = 20 -interface Recipient { - email: string - name: string | null -} - /** * Emails the schedule's creator and the workspace admins after Sim turns a * schedule off on its own. @@ -63,7 +58,11 @@ export async function notifyScheduleAutoDisabled(params: { const workspaceId = row.workflowWorkspaceId ?? row.jobWorkspaceId const resourceName = row.workflowName ?? row.jobTitle ?? undefined - const recipients = await resolveRecipients(ownerUserId, workspaceId) + const recipients = await resolveOwnerAndAdminRecipients( + ownerUserId, + workspaceId, + MAX_SCHEDULE_DISABLE_RECIPIENTS + ) if (recipients.length === 0) { logger.warn('Schedule auto-disabled but no recipients could be resolved', { scheduleId, @@ -111,57 +110,6 @@ export async function notifyScheduleAutoDisabled(params: { } } -/** - * Creator first, then workspace admins. Deduped on lowercased email so someone - * who is both only receives one message. - * - * The two lookups are independent and each failure is contained: losing one - * must not zero out the other, or a blip in either turns an auto-disable back - * into the silent event this notification exists to prevent. - */ -async function resolveRecipients( - ownerUserId: string | null, - workspaceId: string | null -): Promise { - const recipients: Recipient[] = [] - const seen = new Set() - - const add = (email: string | null, name: string | null) => { - if (!email) return - const key = email.toLowerCase() - if (seen.has(key)) return - seen.add(key) - recipients.push({ email, name }) - } - - if (ownerUserId) { - try { - const ownerRows = await db - .select({ email: user.email, name: user.name }) - .from(user) - .where(eq(user.id, ownerUserId)) - .limit(1) - add(ownerRows[0]?.email ?? null, ownerRows[0]?.name ?? null) - } catch (error) { - logger.error('Failed to resolve schedule creator for disable email', error, { ownerUserId }) - } - } - - if (workspaceId) { - try { - const members = await getUsersWithPermissions(workspaceId) - for (const member of members) { - if (member.permissionType !== 'admin') continue - add(member.email, member.name) - } - } catch (error) { - logger.error('Failed to resolve workspace admins for disable email', error, { workspaceId }) - } - } - - return recipients.slice(0, MAX_SCHEDULE_DISABLE_RECIPIENTS) -} - function buildManageLink( workspaceId: string | null, workflowId: string | null diff --git a/packages/testing/src/mocks/email-templates.mock.ts b/packages/testing/src/mocks/email-templates.mock.ts index e929aef0a27..50a47cfab82 100644 --- a/packages/testing/src/mocks/email-templates.mock.ts +++ b/packages/testing/src/mocks/email-templates.mock.ts @@ -265,6 +265,7 @@ const EMAIL_SUBJECTS: Record = { 'abandoned-checkout': 'Quick question', 'free-tier-exhausted': `You've run out of free credits on ${BRAND_NAME}`, 'schedule-disabled': `A schedule was turned off on ${BRAND_NAME}`, + 'deprecated-model': `A workflow uses a retired model on ${BRAND_NAME}`, 'subprocessor-change': `Upcoming change to ${BRAND_NAME} sub-processors`, 'onboarding-followup': `Quick question about ${BRAND_NAME}`, welcome: `Welcome to ${BRAND_NAME}`, @@ -317,6 +318,7 @@ export const emailTemplatesMockFns = { mockPermissionAccessRequestEmail: vi.fn((_props?: unknown): null => null), mockScheduleDisabledEmail: vi.fn((_props?: unknown): null => null), mockSubprocessorChangeEmail: vi.fn((_props?: unknown): null => null), + mockDeprecatedModelEmail: vi.fn((_props?: unknown): null => null), mockHelpConfirmationEmail: vi.fn((_props?: unknown): null => null), mockRenderOTPEmail: vi.fn(), mockRenderExistingAccountEmail: vi.fn(), @@ -331,6 +333,7 @@ export const emailTemplatesMockFns = { mockRenderPermissionAccessRequestEmail: vi.fn(), mockRenderScheduleDisabledEmail: vi.fn(), mockRenderSubprocessorChangeEmail: vi.fn(), + mockRenderDeprecatedModelEmail: vi.fn(), mockRenderFreeTierUpgradeEmail: vi.fn(), mockRenderLimitThresholdEmail: vi.fn(), mockRenderPlanWelcomeEmail: vi.fn(), @@ -424,6 +427,7 @@ export const emailTemplatesMock = { PermissionAccessRequestEmail: emailTemplatesMockFns.mockPermissionAccessRequestEmail, ScheduleDisabledEmail: emailTemplatesMockFns.mockScheduleDisabledEmail, SubprocessorChangeEmail: emailTemplatesMockFns.mockSubprocessorChangeEmail, + DeprecatedModelEmail: emailTemplatesMockFns.mockDeprecatedModelEmail, HelpConfirmationEmail: emailTemplatesMockFns.mockHelpConfirmationEmail, renderOTPEmail: emailTemplatesMockFns.mockRenderOTPEmail, renderExistingAccountEmail: emailTemplatesMockFns.mockRenderExistingAccountEmail, @@ -439,6 +443,7 @@ export const emailTemplatesMock = { renderPermissionAccessRequestEmail: emailTemplatesMockFns.mockRenderPermissionAccessRequestEmail, renderScheduleDisabledEmail: emailTemplatesMockFns.mockRenderScheduleDisabledEmail, renderSubprocessorChangeEmail: emailTemplatesMockFns.mockRenderSubprocessorChangeEmail, + renderDeprecatedModelEmail: emailTemplatesMockFns.mockRenderDeprecatedModelEmail, renderFreeTierUpgradeEmail: emailTemplatesMockFns.mockRenderFreeTierUpgradeEmail, renderLimitThresholdEmail: emailTemplatesMockFns.mockRenderLimitThresholdEmail, renderPlanWelcomeEmail: emailTemplatesMockFns.mockRenderPlanWelcomeEmail, diff --git a/scripts/check-tool-registry-boundary.baseline.json b/scripts/check-tool-registry-boundary.baseline.json index 3f5271ec222..f8eb072a931 100644 --- a/scripts/check-tool-registry-boundary.baseline.json +++ b/scripts/check-tool-registry-boundary.baseline.json @@ -6,68 +6,68 @@ }, "entries": { "app/api/v2/blocks/[blockId]/route.ts": { - "modules": 2035, + "modules": 2077, "gateways": { "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/api/server/routes/index.ts": 432, - "apps/sim/blocks/registry.ts": 387, - "apps/sim/lib/api/server/routes/internal-json-route.ts": 380, - "apps/sim/lib/auth/index.ts": 368, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 90 + "apps/sim/lib/api/server/routes/index.ts": 444, + "apps/sim/lib/api/server/routes/internal-json-route.ts": 394, + "apps/sim/blocks/registry.ts": 391, + "apps/sim/lib/auth/index.ts": 382, + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94 } }, "app/api/v2/blocks/route.ts": { - "modules": 2032, + "modules": 2073, "gateways": { - "apps/sim/blocks/registry.ts": 948, + "apps/sim/blocks/registry.ts": 954, "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/api/server/routes/index.ts": 425, - "apps/sim/lib/api/server/routes/internal-json-route.ts": 381, - "apps/sim/lib/auth/index.ts": 369, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 91 + "apps/sim/lib/api/server/routes/index.ts": 435, + "apps/sim/lib/api/server/routes/internal-json-route.ts": 394, + "apps/sim/lib/auth/index.ts": 382, + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94 } }, "app/api/v2/connector-types/route.ts": { - "modules": 2102, + "modules": 2143, "gateways": { - "apps/sim/blocks/registry.ts": 949, + "apps/sim/blocks/registry.ts": 955, "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/api/server/routes/index.ts": 425, - "apps/sim/lib/api/server/routes/internal-json-route.ts": 381, - "apps/sim/lib/auth/index.ts": 369, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 91 + "apps/sim/lib/api/server/routes/index.ts": 435, + "apps/sim/lib/api/server/routes/internal-json-route.ts": 394, + "apps/sim/lib/auth/index.ts": 382, + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94 } }, "app/api/v2/tools/[toolId]/route.ts": { - "modules": 2030, + "modules": 2071, "gateways": { - "apps/sim/blocks/registry.ts": 948, + "apps/sim/blocks/registry.ts": 954, "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/api/server/routes/index.ts": 433, - "apps/sim/lib/api/server/routes/internal-json-route.ts": 381, - "apps/sim/lib/auth/index.ts": 369, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 91 + "apps/sim/lib/api/server/routes/index.ts": 444, + "apps/sim/lib/api/server/routes/internal-json-route.ts": 394, + "apps/sim/lib/auth/index.ts": 382, + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94 } }, "app/api/v2/tools/route.ts": { - "modules": 2031, + "modules": 2072, "gateways": { - "apps/sim/blocks/registry.ts": 948, + "apps/sim/blocks/registry.ts": 954, "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/api/server/routes/index.ts": 425, - "apps/sim/lib/api/server/routes/internal-json-route.ts": 381, - "apps/sim/lib/auth/index.ts": 369, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 91 + "apps/sim/lib/api/server/routes/index.ts": 435, + "apps/sim/lib/api/server/routes/internal-json-route.ts": 394, + "apps/sim/lib/auth/index.ts": 382, + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94 } }, "app/workspace/[workspaceId]/access-requests/loading.tsx": { @@ -79,16 +79,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/changelog/layout.tsx": { - "modules": 1690, + "modules": 1695, "gateways": { - "apps/sim/app/workspace/[workspaceId]/changelog/components/index.ts": 1689, - "apps/sim/app/workspace/[workspaceId]/changelog/components/release-entry/release-entry.tsx": 1551, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 1511, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 1475, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 1396, + "apps/sim/app/workspace/[workspaceId]/changelog/components/index.ts": 1694, + "apps/sim/app/workspace/[workspaceId]/changelog/components/release-entry/release-entry.tsx": 1559, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 1518, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 1476, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 1397, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 397, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/index.ts": 80 + "apps/sim/blocks/registry.ts": 404, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/index.ts": 77 } }, "app/workspace/[workspaceId]/changelog/loading.tsx": { @@ -96,16 +96,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/changelog/page.tsx": { - "modules": 1727, + "modules": 1732, "gateways": { - "apps/sim/app/workspace/[workspaceId]/changelog/changelog.tsx": 1709, + "apps/sim/app/workspace/[workspaceId]/changelog/changelog.tsx": 1714, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 397, - "apps/sim/app/workspace/[workspaceId]/changelog/components/index.ts": 393, - "apps/sim/app/workspace/[workspaceId]/changelog/components/release-entry/release-entry.tsx": 389, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 349, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 313, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 234 + "apps/sim/blocks/registry.ts": 404, + "apps/sim/app/workspace/[workspaceId]/changelog/components/index.ts": 400, + "apps/sim/app/workspace/[workspaceId]/changelog/components/release-entry/release-entry.tsx": 396, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 355, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 317, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 238 } }, "app/workspace/[workspaceId]/chat/[chatId]/error.tsx": { @@ -117,16 +117,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/chat/[chatId]/page.tsx": { - "modules": 3789, - "gateways": { - "apps/sim/app/workspace/[workspaceId]/home/home.tsx": 1832, - "apps/sim/app/workspace/[workspaceId]/home/components/chat-resource-panel.tsx": 1092, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx": 1088, - "apps/sim/lib/auth/index.ts": 756, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/index.ts": 747, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/index.ts": 744, + "modules": 3823, + "gateways": { + "apps/sim/app/workspace/[workspaceId]/home/home.tsx": 1825, + "apps/sim/app/workspace/[workspaceId]/home/components/chat-resource-panel.tsx": 1102, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx": 1098, + "apps/sim/lib/auth/index.ts": 792, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/index.ts": 750, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/index.ts": 747, "apps/sim/triggers/registry.ts": 555, - "apps/sim/blocks/registry.ts": 356 + "apps/sim/blocks/registry.ts": 360 } }, "app/workspace/[workspaceId]/dashboards/layout.tsx": { @@ -138,16 +138,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/dashboards/page.tsx": { - "modules": 1340, + "modules": 1341, "gateways": { - "apps/sim/components/dashboards/dashboard-resource.tsx": 1323, - "apps/sim/app/workspace/[workspaceId]/files/hooks/use-workspace-files-room.ts": 1143, - "apps/sim/app/workspace/[workspaceId]/hooks/use-workspace-invalidation-room.ts": 1137, - "apps/sim/app/workspace/providers/socket-provider.tsx": 1135, + "apps/sim/components/dashboards/dashboard-resource.tsx": 1324, + "apps/sim/app/workspace/[workspaceId]/files/hooks/use-workspace-files-room.ts": 1140, + "apps/sim/app/workspace/[workspaceId]/hooks/use-workspace-invalidation-room.ts": 1134, + "apps/sim/app/workspace/providers/socket-provider.tsx": 1132, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 400, - "apps/sim/blocks/registry-maps.ts": 397, - "apps/sim/lib/api/contracts/index.ts": 47 + "apps/sim/blocks/registry.ts": 407, + "apps/sim/blocks/registry-maps.ts": 404, + "apps/sim/lib/api/contracts/index.ts": 51 } }, "app/workspace/[workspaceId]/error.tsx": { @@ -159,23 +159,23 @@ "gateways": {} }, "app/workspace/[workspaceId]/files/[fileId]/page.tsx": { - "modules": 2675, + "modules": 2709, "gateways": { - "apps/sim/app/workspace/[workspaceId]/files/files.tsx": 557, + "apps/sim/app/workspace/[workspaceId]/files/files.tsx": 566, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/auth/index.ts": 424, - "apps/sim/blocks/registry.ts": 379, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 298, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 268, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 196, - "apps/sim/lib/oauth/credential-service.ts": 100 + "apps/sim/lib/auth/index.ts": 440, + "apps/sim/blocks/registry.ts": 384, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 304, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 272, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 199, + "apps/sim/lib/oauth/credential-service.ts": 104 } }, "app/workspace/[workspaceId]/files/[fileId]/view/page.tsx": { "modules": 87, "gateways": { "apps/sim/app/workspace/[workspaceId]/files/[fileId]/view/file-viewer.tsx": 86, - "apps/sim/hooks/queries/workspace-files.ts": 69 + "apps/sim/hooks/queries/workspace-files.ts": 82 } }, "app/workspace/[workspaceId]/files/error.tsx": { @@ -187,16 +187,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/files/page.tsx": { - "modules": 2674, + "modules": 2708, "gateways": { + "apps/sim/app/workspace/[workspaceId]/files/files.tsx": 563, "apps/sim/triggers/registry.ts": 555, - "apps/sim/app/workspace/[workspaceId]/files/files.tsx": 554, - "apps/sim/lib/auth/index.ts": 424, - "apps/sim/blocks/registry.ts": 379, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 298, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 268, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 196, - "apps/sim/lib/oauth/credential-service.ts": 100 + "apps/sim/lib/auth/index.ts": 440, + "apps/sim/blocks/registry.ts": 384, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/index.ts": 304, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/file-viewer.tsx": 272, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-editor.tsx": 199, + "apps/sim/lib/oauth/credential-service.ts": 104 } }, "app/workspace/[workspaceId]/home/error.tsx": { @@ -208,41 +208,41 @@ "gateways": {} }, "app/workspace/[workspaceId]/home/page.tsx": { - "modules": 3789, - "gateways": { - "apps/sim/app/workspace/[workspaceId]/home/home.tsx": 1832, - "apps/sim/app/workspace/[workspaceId]/home/components/chat-resource-panel.tsx": 1092, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx": 1088, - "apps/sim/lib/auth/index.ts": 756, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/index.ts": 747, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/index.ts": 744, + "modules": 3823, + "gateways": { + "apps/sim/app/workspace/[workspaceId]/home/home.tsx": 1825, + "apps/sim/app/workspace/[workspaceId]/home/components/chat-resource-panel.tsx": 1102, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/mothership-view.tsx": 1098, + "apps/sim/lib/auth/index.ts": 792, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/index.ts": 750, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-view/components/resource-content/index.ts": 747, "apps/sim/triggers/registry.ts": 555, - "apps/sim/blocks/registry.ts": 356 + "apps/sim/blocks/registry.ts": 360 } }, "app/workspace/[workspaceId]/integrations/[block]/page.tsx": { - "modules": 1304, + "modules": 1301, "gateways": { - "apps/sim/app/workspace/[workspaceId]/integrations/[block]/integration-block-detail.tsx": 1209, + "apps/sim/app/workspace/[workspaceId]/integrations/[block]/integration-block-detail.tsx": 1220, "apps/sim/triggers/index.ts": 599, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 408, - "apps/sim/lib/api/contracts/index.ts": 55, + "apps/sim/blocks/registry.ts": 419, + "apps/sim/lib/api/contracts/index.ts": 54, "apps/sim/triggers/plane/index.ts": 46, "apps/sim/triggers/clickup/index.ts": 32 } }, "app/workspace/[workspaceId]/integrations/connected/[credentialId]/page.tsx": { - "modules": 1381, + "modules": 1380, "gateways": { - "apps/sim/app/workspace/[workspaceId]/integrations/connected/[credentialId]/connected-credential-detail.tsx": 1333, + "apps/sim/app/workspace/[workspaceId]/integrations/connected/[credentialId]/connected-credential-detail.tsx": 1334, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 400, - "apps/sim/app/workspace/[workspaceId]/components/credential-detail/index.ts": 104, - "apps/sim/components/permissions/index.ts": 89, - "apps/sim/components/permissions/add-people-modal.tsx": 84, - "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 82, - "apps/sim/lib/api/contracts/index.ts": 59 + "apps/sim/blocks/registry.ts": 411, + "apps/sim/app/workspace/[workspaceId]/components/credential-detail/index.ts": 105, + "apps/sim/components/permissions/index.ts": 90, + "apps/sim/components/permissions/add-people-modal.tsx": 85, + "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 83, + "apps/sim/lib/api/contracts/index.ts": 56 } }, "app/workspace/[workspaceId]/integrations/error.tsx": { @@ -250,14 +250,14 @@ "gateways": {} }, "app/workspace/[workspaceId]/integrations/page.tsx": { - "modules": 1269, + "modules": 1265, "gateways": { - "apps/sim/app/workspace/[workspaceId]/integrations/integrations.tsx": 1265, - "apps/sim/blocks/registry.ts": 1017, + "apps/sim/app/workspace/[workspaceId]/integrations/integrations.tsx": 1261, + "apps/sim/blocks/registry.ts": 1029, "apps/sim/triggers/index.ts": 599, "apps/sim/triggers/registry.ts": 597, - "apps/sim/hooks/queries/credentials.ts": 76, - "apps/sim/lib/api/contracts/index.ts": 55, + "apps/sim/hooks/queries/credentials.ts": 75, + "apps/sim/lib/api/contracts/index.ts": 54, "apps/sim/triggers/plane/index.ts": 46, "apps/sim/triggers/clickup/index.ts": 32 } @@ -269,13 +269,13 @@ "app/workspace/[workspaceId]/knowledge/[id]/[documentId]/page.tsx": { "modules": 1514, "gateways": { - "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/document.tsx": 1447, + "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/[documentId]/document.tsx": 1449, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 389, - "apps/sim/blocks/registry-maps.ts": 386, - "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 91, + "apps/sim/blocks/registry.ts": 398, + "apps/sim/blocks/registry-maps.ts": 395, + "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 92, "apps/sim/connectors/registry.ts": 76, - "apps/sim/lib/api/contracts/index.ts": 56, + "apps/sim/lib/api/contracts/index.ts": 53, "apps/sim/triggers/plane/index.ts": 46 } }, @@ -288,16 +288,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/knowledge/[id]/page.tsx": { - "modules": 1712, + "modules": 1714, "gateways": { - "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx": 1644, + "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/base.tsx": 1648, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 395, - "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/index.ts": 180, + "apps/sim/blocks/registry.ts": 402, + "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/components/index.ts": 182, "apps/sim/connectors/registry.ts": 71, "apps/sim/app/workspace/[workspaceId]/knowledge/[id]/hooks/use-connector-scope.ts": 57, - "apps/sim/app/o/[organizationId]/providers/organization-provider.tsx": 47, - "apps/sim/triggers/plane/index.ts": 46 + "apps/sim/triggers/plane/index.ts": 46, + "apps/sim/app/o/[organizationId]/providers/organization-provider.tsx": 45 } }, "app/workspace/[workspaceId]/knowledge/error.tsx": { @@ -309,29 +309,29 @@ "gateways": {} }, "app/workspace/[workspaceId]/knowledge/page.tsx": { - "modules": 2835, + "modules": 2874, "gateways": { "apps/sim/triggers/registry.ts": 555, - "apps/sim/app/workspace/[workspaceId]/knowledge/prefetch.ts": 464, - "apps/sim/lib/knowledge/application/knowledge-bases.ts": 392, - "apps/sim/blocks/registry.ts": 379, - "apps/sim/lib/auth/index.ts": 302, - "apps/sim/app/workspace/[workspaceId]/knowledge/knowledge.tsx": 235, - "apps/sim/lib/knowledge/orchestration/index.ts": 233, - "apps/sim/lib/knowledge/orchestration/connectors.ts": 229 + "apps/sim/app/workspace/[workspaceId]/knowledge/prefetch.ts": 475, + "apps/sim/lib/knowledge/application/knowledge-bases.ts": 403, + "apps/sim/blocks/registry.ts": 386, + "apps/sim/lib/auth/index.ts": 310, + "apps/sim/app/workspace/[workspaceId]/knowledge/knowledge.tsx": 237, + "apps/sim/lib/knowledge/orchestration/index.ts": 222, + "apps/sim/lib/knowledge/orchestration/connectors.ts": 218 } }, "app/workspace/[workspaceId]/layout.tsx": { - "modules": 2705, + "modules": 2731, "gateways": { "apps/sim/triggers/registry.ts": 555, - "apps/sim/blocks/registry.ts": 374, - "apps/sim/lib/auth/index.ts": 360, - "apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx": 286, - "apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/index.ts": 158, - "apps/sim/lib/oauth/credential-service.ts": 100, + "apps/sim/blocks/registry.ts": 378, + "apps/sim/lib/auth/index.ts": 370, + "apps/sim/app/workspace/[workspaceId]/w/components/sidebar/sidebar.tsx": 297, + "apps/sim/app/workspace/[workspaceId]/w/components/sidebar/components/index.ts": 162, + "apps/sim/lib/oauth/credential-service.ts": 104, "apps/sim/app/workspace/[workspaceId]/prefetch-access.ts": 93, - "apps/sim/lib/webhooks/providers/index.ts": 89 + "apps/sim/lib/webhooks/providers/index.ts": 92 } }, "app/workspace/[workspaceId]/logs/error.tsx": { @@ -343,16 +343,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/logs/page.tsx": { - "modules": 2007, + "modules": 2011, "gateways": { - "apps/sim/app/workspace/[workspaceId]/logs/logs.tsx": 1989, - "apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/execution-snapshot/execution-snapshot.tsx": 597, + "apps/sim/app/workspace/[workspaceId]/logs/logs.tsx": 1993, + "apps/sim/app/workspace/[workspaceId]/logs/components/log-details/components/execution-snapshot/execution-snapshot.tsx": 602, "apps/sim/triggers/registry.ts": 597, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 544, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 538, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx": 468, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/index.ts": 458, - "apps/sim/blocks/registry.ts": 375 + "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 548, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 542, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx": 471, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/index.ts": 461, + "apps/sim/blocks/registry.ts": 379 } }, "app/workspace/[workspaceId]/not-found.tsx": { @@ -372,16 +372,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/settings/[section]/page.tsx": { - "modules": 3259, + "modules": 3294, "gateways": { - "apps/sim/app/workspace/[workspaceId]/settings/[section]/settings.tsx": 1209, - "apps/sim/app/workspace/[workspaceId]/settings/section-warmers.ts": 990, + "apps/sim/app/workspace/[workspaceId]/settings/[section]/settings.tsx": 1205, + "apps/sim/app/workspace/[workspaceId]/settings/section-warmers.ts": 999, "apps/sim/triggers/registry.ts": 555, - "apps/sim/ee/workspace-forking/components/forks.tsx": 414, - "apps/sim/ee/workspace-forking/components/fork-sync-detail-view/fork-sync-detail-view.tsx": 406, - "apps/sim/ee/workspace-forking/components/fork-sync/fork-sync-view.tsx": 398, - "apps/sim/ee/workspace-forking/components/fork-sync/fork-comparison-modal.tsx": 392, - "apps/sim/blocks/registry.ts": 372 + "apps/sim/ee/workspace-forking/components/forks.tsx": 418, + "apps/sim/ee/workspace-forking/components/fork-sync-detail-view/fork-sync-detail-view.tsx": 410, + "apps/sim/ee/workspace-forking/components/fork-sync/fork-sync-view.tsx": 402, + "apps/sim/ee/workspace-forking/components/fork-sync/fork-comparison-modal.tsx": 396, + "apps/sim/blocks/registry.ts": 376 } }, "app/workspace/[workspaceId]/settings/billing/credit-usage/layout.tsx": { @@ -393,16 +393,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/settings/billing/credit-usage/page.tsx": { - "modules": 1979, + "modules": 2018, "gateways": { - "apps/sim/lib/auth/index.ts": 1812, - "apps/sim/blocks/registry.ts": 952, - "apps/sim/blocks/registry-maps.ts": 949, + "apps/sim/lib/auth/index.ts": 1856, + "apps/sim/blocks/registry.ts": 958, + "apps/sim/blocks/registry-maps.ts": 955, "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 91, - "apps/sim/lib/webhooks/providers/registry.ts": 88 + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94, + "apps/sim/lib/webhooks/providers/registry.ts": 91 } }, "app/workspace/[workspaceId]/settings/error.tsx": { @@ -410,16 +410,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/settings/layout.tsx": { - "modules": 2412, + "modules": 2416, "gateways": { - "apps/sim/app/workspace/[workspaceId]/settings/section-warmers.ts": 2375, + "apps/sim/app/workspace/[workspaceId]/settings/section-warmers.ts": 2381, "apps/sim/triggers/registry.ts": 597, - "apps/sim/ee/workspace-forking/components/forks.tsx": 422, - "apps/sim/ee/workspace-forking/components/fork-sync-detail-view/fork-sync-detail-view.tsx": 414, - "apps/sim/ee/workspace-forking/components/fork-sync/fork-sync-view.tsx": 405, - "apps/sim/ee/workspace-forking/components/fork-sync/fork-comparison-modal.tsx": 399, - "apps/sim/blocks/registry.ts": 375, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 367 + "apps/sim/ee/workspace-forking/components/forks.tsx": 427, + "apps/sim/ee/workspace-forking/components/fork-sync-detail-view/fork-sync-detail-view.tsx": 419, + "apps/sim/ee/workspace-forking/components/fork-sync/fork-sync-view.tsx": 410, + "apps/sim/ee/workspace-forking/components/fork-sync/fork-comparison-modal.tsx": 404, + "apps/sim/blocks/registry.ts": 379, + "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 371 } }, "app/workspace/[workspaceId]/settings/page.tsx": { @@ -427,29 +427,29 @@ "gateways": {} }, "app/workspace/[workspaceId]/settings/secrets/[credentialId]/loading.tsx": { - "modules": 1303, + "modules": 1301, "gateways": { - "apps/sim/app/workspace/[workspaceId]/components/credential-detail/index.ts": 1300, - "apps/sim/components/permissions/index.ts": 1113, - "apps/sim/components/permissions/add-people-modal.tsx": 1108, - "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 1106, + "apps/sim/app/workspace/[workspaceId]/components/credential-detail/index.ts": 1298, + "apps/sim/components/permissions/index.ts": 1126, + "apps/sim/components/permissions/add-people-modal.tsx": 1121, + "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 1119, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 402, - "apps/sim/blocks/registry-maps.ts": 399, - "apps/sim/lib/api/contracts/index.ts": 61 + "apps/sim/blocks/registry.ts": 413, + "apps/sim/blocks/registry-maps.ts": 410, + "apps/sim/lib/api/contracts/index.ts": 58 } }, "app/workspace/[workspaceId]/settings/secrets/[credentialId]/page.tsx": { - "modules": 1326, + "modules": 1323, "gateways": { "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 402, - "apps/sim/blocks/registry-maps.ts": 399, - "apps/sim/app/workspace/[workspaceId]/components/credential-detail/index.ts": 102, - "apps/sim/components/permissions/index.ts": 89, - "apps/sim/components/permissions/add-people-modal.tsx": 84, - "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 82, - "apps/sim/lib/api/contracts/index.ts": 61 + "apps/sim/blocks/registry.ts": 413, + "apps/sim/blocks/registry-maps.ts": 410, + "apps/sim/app/workspace/[workspaceId]/components/credential-detail/index.ts": 103, + "apps/sim/components/permissions/index.ts": 90, + "apps/sim/components/permissions/add-people-modal.tsx": 85, + "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 83, + "apps/sim/lib/api/contracts/index.ts": 58 } }, "app/workspace/[workspaceId]/settings/usage/events/layout.tsx": { @@ -461,29 +461,29 @@ "gateways": {} }, "app/workspace/[workspaceId]/settings/usage/events/page.tsx": { - "modules": 1989, + "modules": 2026, "gateways": { - "apps/sim/lib/auth/index.ts": 1815, - "apps/sim/blocks/registry.ts": 952, - "apps/sim/blocks/registry-maps.ts": 949, + "apps/sim/lib/auth/index.ts": 1858, + "apps/sim/blocks/registry.ts": 957, + "apps/sim/blocks/registry-maps.ts": 954, "apps/sim/triggers/index.ts": 557, "apps/sim/triggers/registry.ts": 555, - "apps/sim/lib/oauth/credential-service.ts": 103, - "apps/sim/lib/webhooks/providers/index.ts": 91, - "apps/sim/lib/webhooks/providers/registry.ts": 88 + "apps/sim/lib/oauth/credential-service.ts": 107, + "apps/sim/lib/webhooks/providers/index.ts": 94, + "apps/sim/lib/webhooks/providers/registry.ts": 91 } }, "app/workspace/[workspaceId]/skills/[skillId]/page.tsx": { - "modules": 1625, + "modules": 1629, "gateways": { - "apps/sim/app/workspace/[workspaceId]/skills/[skillId]/skill-detail.tsx": 1624, + "apps/sim/app/workspace/[workspaceId]/skills/[skillId]/skill-detail.tsx": 1628, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 397, - "apps/sim/app/workspace/[workspaceId]/skills/components/skill-fields/index.ts": 312, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-field.tsx": 309, + "apps/sim/blocks/registry.ts": 404, + "apps/sim/app/workspace/[workspaceId]/skills/components/skill-fields/index.ts": 318, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-field.tsx": 315, "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/editor-extensions.ts": 129, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/index.ts": 74, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/use-markdown-find.ts": 71 + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/index.ts": 71, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/use-markdown-find.ts": 68 } }, "app/workspace/[workspaceId]/skills/error.tsx": { @@ -491,27 +491,27 @@ "gateways": {} }, "app/workspace/[workspaceId]/skills/new/page.tsx": { - "modules": 1623, + "modules": 1627, "gateways": { - "apps/sim/app/workspace/[workspaceId]/skills/new/skill-create.tsx": 1622, + "apps/sim/app/workspace/[workspaceId]/skills/new/skill-create.tsx": 1626, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 397, - "apps/sim/app/workspace/[workspaceId]/skills/components/skill-fields/index.ts": 312, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-field.tsx": 309, + "apps/sim/blocks/registry.ts": 404, + "apps/sim/app/workspace/[workspaceId]/skills/components/skill-fields/index.ts": 318, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/rich-markdown-field.tsx": 315, "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/editor-extensions.ts": 129, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/index.ts": 74, - "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/use-markdown-find.ts": 71 + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/index.ts": 71, + "apps/sim/app/workspace/[workspaceId]/files/components/file-viewer/rich-markdown-editor/find/use-markdown-find.ts": 68 } }, "app/workspace/[workspaceId]/skills/page.tsx": { - "modules": 1225, + "modules": 1220, "gateways": { - "apps/sim/app/workspace/[workspaceId]/skills/skills.tsx": 1221, - "apps/sim/app/workspace/[workspaceId]/integrations/components/showcase-with-explore/index.ts": 1071, - "apps/sim/blocks/registry.ts": 1036, + "apps/sim/app/workspace/[workspaceId]/skills/skills.tsx": 1216, + "apps/sim/app/workspace/[workspaceId]/integrations/components/showcase-with-explore/index.ts": 1069, + "apps/sim/blocks/registry.ts": 1035, "apps/sim/triggers/index.ts": 599, "apps/sim/triggers/registry.ts": 597, - "apps/sim/hooks/queries/skills.ts": 62, + "apps/sim/hooks/queries/skills.ts": 61, "apps/sim/triggers/plane/index.ts": 46, "apps/sim/triggers/clickup/index.ts": 32 } @@ -525,16 +525,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/tables/[tableId]/page.tsx": { - "modules": 2131, + "modules": 2136, "gateways": { - "apps/sim/app/workspace/[workspaceId]/tables/[tableId]/table.tsx": 2066, + "apps/sim/app/workspace/[workspaceId]/tables/[tableId]/table.tsx": 2073, "apps/sim/triggers/registry.ts": 597, "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 487, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 436, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 431, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx": 374, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/index.ts": 365, - "apps/sim/blocks/registry.ts": 359 + "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 435, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 430, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/sub-block.tsx": 373, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/sub-block/components/index.ts": 364, + "apps/sim/blocks/registry.ts": 363 } }, "app/workspace/[workspaceId]/tables/error.tsx": { @@ -546,16 +546,16 @@ "gateways": {} }, "app/workspace/[workspaceId]/tables/page.tsx": { - "modules": 2361, + "modules": 2389, "gateways": { - "apps/sim/lib/auth/index.ts": 642, + "apps/sim/lib/auth/index.ts": 679, "apps/sim/triggers/registry.ts": 555, - "apps/sim/blocks/registry.ts": 381, - "apps/sim/app/workspace/[workspaceId]/tables/tables.tsx": 217, + "apps/sim/blocks/registry.ts": 386, + "apps/sim/app/workspace/[workspaceId]/tables/tables.tsx": 220, "apps/sim/app/workspace/[workspaceId]/tables/prefetch.ts": 107, - "apps/sim/lib/oauth/credential-service.ts": 100, - "apps/sim/lib/webhooks/providers/index.ts": 90, - "apps/sim/lib/webhooks/providers/registry.ts": 88 + "apps/sim/lib/oauth/credential-service.ts": 104, + "apps/sim/lib/webhooks/providers/index.ts": 93, + "apps/sim/lib/webhooks/providers/registry.ts": 91 } }, "app/workspace/[workspaceId]/tests/[name]/loading.tsx": { @@ -563,29 +563,29 @@ "gateways": {} }, "app/workspace/[workspaceId]/tests/[name]/page.tsx": { - "modules": 2046, + "modules": 2052, "gateways": { - "apps/sim/app/workspace/[workspaceId]/tests/components/index.ts": 2045, - "apps/sim/app/workspace/[workspaceId]/tests/components/test-detail.tsx": 2042, + "apps/sim/app/workspace/[workspaceId]/tests/components/index.ts": 2051, + "apps/sim/app/workspace/[workspaceId]/tests/components/test-detail.tsx": 2048, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 375, - "apps/sim/app/workspace/[workspaceId]/tests/components/test-dashboard.tsx": 351, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 342, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 294, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 285 + "apps/sim/blocks/registry.ts": 379, + "apps/sim/app/workspace/[workspaceId]/tests/components/test-dashboard.tsx": 352, + "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 343, + "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 295, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 286 } }, "app/workspace/[workspaceId]/tests/layout.tsx": { - "modules": 2046, + "modules": 2052, "gateways": { - "apps/sim/app/workspace/[workspaceId]/tests/components/index.ts": 2045, - "apps/sim/app/workspace/[workspaceId]/tests/components/test-detail.tsx": 2042, + "apps/sim/app/workspace/[workspaceId]/tests/components/index.ts": 2051, + "apps/sim/app/workspace/[workspaceId]/tests/components/test-detail.tsx": 2048, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 375, - "apps/sim/app/workspace/[workspaceId]/tests/components/test-dashboard.tsx": 351, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 342, - "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 294, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 285 + "apps/sim/blocks/registry.ts": 379, + "apps/sim/app/workspace/[workspaceId]/tests/components/test-dashboard.tsx": 352, + "apps/sim/app/workspace/[workspaceId]/w/components/preview/index.ts": 343, + "apps/sim/app/workspace/[workspaceId]/w/components/preview/components/preview-editor/index.ts": 295, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 286 } }, "app/workspace/[workspaceId]/tests/loading.tsx": { @@ -593,24 +593,24 @@ "gateways": {} }, "app/workspace/[workspaceId]/tests/page.tsx": { - "modules": 1325, + "modules": 1323, "gateways": { - "apps/sim/app/workspace/[workspaceId]/tests/tests.tsx": 1307, - "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 1140, + "apps/sim/app/workspace/[workspaceId]/tests/tests.tsx": 1305, + "apps/sim/app/workspace/[workspaceId]/providers/workspace-permissions-provider.tsx": 1141, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 402, - "apps/sim/blocks/registry-maps.ts": 399, - "apps/sim/lib/api/contracts/index.ts": 61, + "apps/sim/blocks/registry.ts": 413, + "apps/sim/blocks/registry-maps.ts": 410, + "apps/sim/lib/api/contracts/index.ts": 58, "apps/sim/triggers/plane/index.ts": 46, - "apps/sim/stores/workflows/registry/store.ts": 38 + "apps/sim/stores/workflows/registry/store.ts": 39 } }, "app/workspace/[workspaceId]/upgrade/page.tsx": { - "modules": 193, + "modules": 190, "gateways": { - "apps/sim/app/workspace/[workspaceId]/upgrade/upgrade.tsx": 186, - "apps/sim/app/workspace/[workspaceId]/upgrade/hooks/index.ts": 130, - "apps/sim/lib/api/contracts/index.ts": 99 + "apps/sim/app/workspace/[workspaceId]/upgrade/upgrade.tsx": 183, + "apps/sim/app/workspace/[workspaceId]/upgrade/hooks/index.ts": 119, + "apps/sim/lib/api/contracts/index.ts": 98 } }, "app/workspace/[workspaceId]/w/[workflowId]/layout.tsx": { @@ -618,73 +618,73 @@ "gateways": {} }, "app/workspace/[workspaceId]/w/[workflowId]/page.tsx": { - "modules": 2552, + "modules": 2543, "gateways": { - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx": 2551, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/index.ts": 710, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/index.ts": 661, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/workflow.tsx": 2542, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/index.ts": 696, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/index.ts": 647, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 375, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts": 283, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/index.ts": 206, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx": 202 + "apps/sim/blocks/registry.ts": 379, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts": 285, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/index.ts": 205, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx": 201 } }, "app/workspace/[workspaceId]/w/page.tsx": { - "modules": 2538, + "modules": 2533, "gateways": { - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/index.ts": 1179, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/index.ts": 898, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/index.ts": 1187, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/index.ts": 897, "apps/sim/triggers/registry.ts": 597, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts": 432, - "apps/sim/blocks/registry.ts": 375, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/index.ts": 211, - "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx": 207, - "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 179 + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/index.ts": 438, + "apps/sim/blocks/registry.ts": 379, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/index.ts": 210, + "apps/sim/app/workspace/[workspaceId]/home/components/mothership-chat/mothership-chat.tsx": 206, + "apps/sim/app/workspace/[workspaceId]/w/[workflowId]/components/panel/components/editor/components/index.ts": 178 } }, "app/workspace/layout.tsx": { - "modules": 1270, + "modules": 1268, "gateways": { - "apps/sim/app/workspace/providers/socket-provider.tsx": 1259, + "apps/sim/app/workspace/providers/socket-provider.tsx": 1257, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 402, - "apps/sim/blocks/registry-maps.ts": 399, - "apps/sim/stores/workflows/registry/store.ts": 116, - "apps/sim/hooks/queries/deployments.ts": 113, - "apps/sim/lib/workflows/comparison/describe.ts": 98, - "apps/sim/lib/api/contracts/index.ts": 61 + "apps/sim/blocks/registry.ts": 413, + "apps/sim/blocks/registry-maps.ts": 410, + "apps/sim/stores/workflows/registry/store.ts": 113, + "apps/sim/hooks/queries/deployments.ts": 110, + "apps/sim/lib/workflows/comparison/describe.ts": 95, + "apps/sim/lib/api/contracts/index.ts": 58 } }, "app/workspace/page.tsx": { - "modules": 1286, + "modules": 1274, "gateways": { - "apps/sim/lib/auth/stale-session-recovery.ts": 1131, - "apps/sim/stores/reset-all-stores.ts": 1127, + "apps/sim/lib/auth/stale-session-recovery.ts": 1134, + "apps/sim/stores/reset-all-stores.ts": 1130, "apps/sim/triggers/index.ts": 599, "apps/sim/triggers/registry.ts": 597, - "apps/sim/blocks/registry.ts": 403, - "apps/sim/blocks/registry-maps.ts": 400, + "apps/sim/blocks/registry.ts": 414, + "apps/sim/blocks/registry-maps.ts": 411, "apps/sim/lib/api/contracts/index.ts": 55, "apps/sim/triggers/plane/index.ts": 46 } }, "lib/catalog/projection/block-detail.ts": { - "modules": 1093, + "modules": 1095, "gateways": { "apps/sim/triggers/index.ts": 599, "apps/sim/triggers/registry.ts": 597, - "apps/sim/lib/catalog/projection/block-summary.ts": 446, - "apps/sim/blocks/registry-maps.ts": 442, + "apps/sim/lib/catalog/projection/block-summary.ts": 459, + "apps/sim/blocks/registry-maps.ts": 455, "apps/sim/triggers/plane/index.ts": 46, "apps/sim/triggers/clickup/index.ts": 32 } }, "lib/catalog/projection/block-summary.ts": { - "modules": 1088, + "modules": 1090, "gateways": { - "apps/sim/blocks/registry.ts": 1077, - "apps/sim/blocks/registry-maps.ts": 1074, + "apps/sim/blocks/registry.ts": 1079, + "apps/sim/blocks/registry-maps.ts": 1076, "apps/sim/triggers/index.ts": 599, "apps/sim/triggers/registry.ts": 597, "apps/sim/triggers/plane/index.ts": 46,