Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions apps/unsubscriber/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@
},
"devDependencies": {
"@types/dotenv": "8.2.3",
"@types/node": "24.9.1",
"playwright": "1.56.1",
"tsx": "4.20.6",
"@types/node": "24.10.1",
"playwright": "1.57.0",
"tsx": "4.21.0",
"typescript": "5.9.3"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "3.0.45",
"@ai-sdk/anthropic": "2.0.35",
"@ai-sdk/google": "2.0.23",
"@ai-sdk/openai": "2.0.53",
"@ai-sdk/amazon-bedrock": "3.0.67",
"@ai-sdk/anthropic": "2.0.53",
"@ai-sdk/google": "2.0.44",
"@ai-sdk/openai": "2.0.77",
"@fastify/cors": "11.1.0",
"@t3-oss/env-core": "0.13.8",
"ai": "5.0.76",
"ai": "5.0.106",
"dotenv": "17.2.3",
"fastify": "5.6.1",
"fastify": "5.6.2",
"zod": "3.25.46"
}
}
121 changes: 61 additions & 60 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,22 @@
"postinstall": "prisma generate"
},
"dependencies": {
"@ai-sdk/amazon-bedrock": "3.0.45",
"@ai-sdk/anthropic": "2.0.35",
"@ai-sdk/gateway": "2.0.0",
"@ai-sdk/google": "2.0.23",
"@ai-sdk/groq": "2.0.24",
"@ai-sdk/openai": "2.0.53",
"@ai-sdk/amazon-bedrock": "3.0.67",
"@ai-sdk/anthropic": "2.0.53",
"@ai-sdk/gateway": "2.0.18",
"@ai-sdk/google": "2.0.44",
"@ai-sdk/groq": "2.0.32",
"@ai-sdk/mcp": "0.0.11",
"@ai-sdk/openai": "2.0.77",
"@ai-sdk/provider": "2.0.0",
"@ai-sdk/react": "2.0.76",
"@ai-sdk/react": "2.0.106",
"@asteasolutions/zod-to-openapi": "8.1.0",
"@better-auth/sso": "1.3.28",
"@date-fns/tz": "1.4.1",
"@dub/analytics": "0.0.32",
"@formkit/auto-animate": "0.9.0",
"@googleapis/calendar": "^12.0.0",
"@googleapis/gmail": "15.0.0",
"@googleapis/calendar": "^14.0.0",
"@googleapis/gmail": "16.1.0",
"@googleapis/people": "6.0.0",
"@headlessui/react": "2.2.9",
"@hookform/resolvers": "5.2.2",
Expand All @@ -42,43 +43,43 @@
"@mdx-js/loader": "3.1.1",
"@mdx-js/react": "3.1.1",
"@microsoft/microsoft-graph-client": "3.0.7",
"@modelcontextprotocol/sdk": "1.24.0",
"@modelcontextprotocol/sdk": "1.24.3",
"@mux/mux-player-react": "3.6.1",
"@next/mdx": "15.5.6",
"@next/third-parties": "15.5.6",
"@openrouter/ai-sdk-provider": "1.2.0",
"@next/mdx": "15.5.7",
"@next/third-parties": "15.5.7",
"@openrouter/ai-sdk-provider": "1.4.0",
"@portabletext/react": "4.0.3",
"@prisma/adapter-pg": "7.0.0",
"@prisma/adapter-pg": "7.1.0",
"@prisma/client": "6.16.3",
"@radix-ui/react-alert-dialog": "1.1.15",
"@radix-ui/react-avatar": "1.1.10",
"@radix-ui/react-avatar": "1.1.11",
"@radix-ui/react-checkbox": "1.3.3",
"@radix-ui/react-collapsible": "1.1.12",
"@radix-ui/react-dialog": "1.1.15",
"@radix-ui/react-dropdown-menu": "2.1.16",
"@radix-ui/react-hover-card": "1.1.15",
"@radix-ui/react-label": "2.1.7",
"@radix-ui/react-label": "2.1.8",
"@radix-ui/react-navigation-menu": "1.2.14",
"@radix-ui/react-popover": "1.1.15",
"@radix-ui/react-progress": "1.1.7",
"@radix-ui/react-progress": "1.1.8",
"@radix-ui/react-radio-group": "1.3.8",
"@radix-ui/react-scroll-area": "1.2.10",
"@radix-ui/react-select": "2.2.6",
"@radix-ui/react-separator": "1.1.7",
"@radix-ui/react-slot": "1.2.3",
"@radix-ui/react-separator": "1.1.8",
"@radix-ui/react-slot": "1.2.4",
"@radix-ui/react-switch": "1.2.6",
"@radix-ui/react-tabs": "1.1.13",
"@radix-ui/react-toggle": "1.1.10",
"@radix-ui/react-tooltip": "1.2.8",
"@radix-ui/react-use-controllable-state": "1.2.2",
"@react-email/render": "1.4.0",
"@sentry/nextjs": "10.20.0",
"@serwist/next": "9.2.1",
"@stripe/stripe-js": "8.1.0",
"@sentry/nextjs": "10.28.0",
"@serwist/next": "9.2.3",
"@stripe/stripe-js": "8.5.3",
"@t3-oss/env-nextjs": "0.13.8",
"@tailwindcss/forms": "0.5.10",
"@tailwindcss/typography": "0.5.19",
"@tanstack/react-query": "5.90.5",
"@tanstack/react-query": "5.90.12",
"@tanstack/react-table": "8.21.3",
"@tanstack/react-virtual": "3.13.12",
"@tiptap/extension-mention": "2.26.1",
Expand All @@ -88,63 +89,63 @@
"@tiptap/starter-kit": "2.26.1",
"@tiptap/suggestion": "2.26.1",
"@upstash/qstash": "2.8.4",
"@upstash/redis": "1.35.6",
"@vercel/analytics": "1.5.0",
"@vercel/speed-insights": "1.2.0",
"ai": "5.0.76",
"@upstash/redis": "1.35.7",
"@vercel/analytics": "1.6.1",
"@vercel/speed-insights": "1.3.1",
"ai": "5.0.106",
"better-auth": "1.4.5",
"braintrust": "0.4.6",
"braintrust": "0.4.10",
"capital-case": "2.0.0",
"cheerio": "1.0.0",
"class-variance-authority": "0.7.1",
"clsx": "2.1.1",
"cmdk": "1.1.1",
"crisp-sdk-web": "1.0.26",
"date-fns": "4.1.0",
"diff": "^8.0.0",
"diff": "^8.0.2",
"dompurify": "3.3.0",
"dub": "0.67.0",
"easymde": "^2.20.0",
"email-reply-parser": "1.9.4",
"embla-carousel-react": "8.6.0",
"encoding": "0.1.13",
"fast-deep-equal": "3.1.3",
"fast-xml-parser": "5.2.5",
"framer-motion": "^12.23.24",
"gaxios": "7.1.2",
"fast-xml-parser": "5.3.2",
"framer-motion": "^12.23.25",
"gaxios": "7.1.3",
"gmail-api-parse-message": "2.1.2",
"google": "link:@next/third-parties/google",
"he": "1.2.0",
"html-to-text": "9.0.5",
"ioredis": "5.8.2",
"jotai": "2.15.0",
"jsdom": "26.1.0",
"jotai": "2.15.2",
"jsdom": "27.2.0",
"json5": "2.2.3",
"jsonrepair": "3.13.1",
"linkify-react": "4.3.2",
"linkifyjs": "4.3.2",
"lodash": "4.17.21",
"lucide-react": "0.546.0",
"motion": "12.23.24",
"lucide-react": "0.555.0",
"motion": "12.23.25",
"next": "15.5.7",
"next-axiom": "1.9.3",
"next-safe-action": "8.0.11",
"next-themes": "0.4.6",
"nodemailer": "7.0.11",
"nuqs": "2.7.2",
"nuqs": "2.8.2",
"ollama-ai-provider": "1.2.0",
"openai": "6.6.0",
"p-queue": "9.0.0",
"openai": "6.9.1",
"p-queue": "9.0.1",
"p-retry": "7.1.0",
"pg": "8.16.3",
"posthog-js": "1.261.0",
"posthog-node": "5.8.1",
"posthog-js": "1.301.1",
"posthog-node": "5.17.0",
"prisma": "6.16.3",
"react": "19.1.1",
"react": "19.2.1",
"react-day-picker": "8.10.1",
"react-dom": "19.1.1",
"react-dom": "19.2.1",
"react-dom-confetti": "0.2.0",
"react-hook-form": "7.65.0",
"react-hook-form": "7.68.0",
"react-hotkeys-hook": "5.2.1",
"react-markdown": "10.1.0",
"react-resizable-panels": "2.1.7",
Expand All @@ -156,13 +157,13 @@
"sanity-plugin-markdown": "6.0.0",
"schema-dts": "1.1.5",
"server-only": "0.0.1",
"shiki": "3.13.0",
"shiki": "3.19.0",
"sonner": "2.0.7",
"streamdown": "1.4.0",
"string-similarity": "4.0.4",
"strip-indent": "4.1.1",
"stripe": "19.1.0",
"swr": "2.3.6",
"stripe": "20.0.0",
"swr": "2.3.7",
"tailwind-merge": "2.6.0",
"tailwindcss-animate": "1.0.7",
"tiptap-markdown": "0.8.10",
Expand All @@ -181,36 +182,36 @@
"@types/he": "1.2.3",
"@types/html-to-text": "9.0.4",
"@types/jsdom": "27.0.0",
"@types/lodash": "4.17.20",
"@types/lodash": "4.17.21",
"@types/mdx": "2.0.13",
"@types/node": "24.9.1",
"@types/nodemailer": "7.0.2",
"@types/react": "19.1.12",
"@types/react-dom": "19.1.9",
"@types/node": "24.10.1",
"@types/nodemailer": "7.0.4",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@types/react-syntax-highlighter": "15.5.13",
"@types/string-similarity": "4.0.2",
"@vitest/coverage-v8": "3.2.4",
"@vitest/ui": "3.2.4",
"autoprefixer": "10.4.21",
"@vitest/coverage-v8": "4.0.15",
"@vitest/ui": "4.0.15",
"autoprefixer": "10.4.22",
"cross-env": "10.1.0",
"dotenv": "17.2.3",
"postcss": "8.5.6",
"serwist": "9.2.1",
"serwist": "9.2.3",
"tailwindcss": "3.4.17",
"tsconfig": "workspace:*",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.2.4",
"vitest": "4.0.15",
"vitest-mock-extended": "3.1.0"
},
"engines": {
"node": ">=22.0.0"
},
"optionalDependencies": {
"@sanity/client": "7.12.0",
"@sanity/client": "7.13.1",
"@sanity/icons": "3.7.4",
"@sanity/image-url": "1",
"@sanity/image-url": "2",
"@sanity/vision": "4",
"next-sanity": "11",
"sanity": "4.10.3"
"sanity": "4.20.3"
}
}
2 changes: 1 addition & 1 deletion apps/web/utils/ai/mcp/mcp-tools.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { experimental_createMCPClient } from "ai";
import { experimental_createMCPClient } from "@ai-sdk/mcp";
import { getIntegration } from "@/utils/mcp/integrations";
import prisma from "@/utils/prisma";
import { createScopedLogger } from "@/utils/logger";
Expand Down
15 changes: 9 additions & 6 deletions apps/web/utils/webhook/validate-webhook-account.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { NextResponse } from "next/server";
import { env } from "@/env";
import { hasAiAccess, isPremium } from "@/utils/premium";
import { unwatchEmails } from "@/app/api/watch/controller";
import { createEmailProvider } from "@/utils/email/provider";
Expand Down Expand Up @@ -122,12 +123,14 @@ export async function validateWebhookAccount(
return { success: false, response: NextResponse.json({ ok: true }) };
}

const premium = isPremium(
emailAccount.user.premium?.lemonSqueezyRenewsAt || null,
emailAccount.user.premium?.stripeSubscriptionStatus || null,
)
? emailAccount.user.premium
: undefined;
const premium = env.NEXT_PUBLIC_BYPASS_PREMIUM_CHECKS
? { tier: "BUSINESS_PLUS_ANNUALLY" as const }
: isPremium(
emailAccount.user.premium?.lemonSqueezyRenewsAt || null,
emailAccount.user.premium?.stripeSubscriptionStatus || null,
)
? emailAccount.user.premium
: undefined;

const provider = await createEmailProvider({
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

createEmailProvider is called early (line 135) before verifying a supported provider or valid tokens, so it can throw (e.g., Unsupported provider: undefined) and abort validation paths that should return { ok: true }. Consider deferring provider creation to the unwatch branches and guarding failures so unsupported/missing providers don’t break the graceful response.

🚀 Reply to ask Macroscope to explain or update this suggestion.

👍 Helpful? React to give us feedback.

emailAccountId: emailAccount.id,
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,17 @@
"devDependencies": {
"@biomejs/biome": "2.2.2",
"@clack/prompts": "0.11.0",
"@turbo/gen": "2.5.8",
"@turbo/gen": "2.6.2",
"commander": "14.0.2",
"husky": "9.1.7",
"lint-staged": "16.2.5",
"prettier": "3.6.2",
"tsconfig-paths": "^4.2.0",
"tsx": "4.20.6",
"turbo": "2.6.1",
"tsx": "4.21.0",
"turbo": "2.6.2",
"ultracite": "5.3.3"
},
"packageManager": "pnpm@10.22.0",
"packageManager": "pnpm@10.24.0",
"lint-staged": {
"*.{js,jsx,ts,tsx,json,jsonc,css,scss,md,mdx}": [
"npx ultracite fix"
Expand Down
6 changes: 3 additions & 3 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
"commander": "14.0.2"
},
"devDependencies": {
"@types/node": "22.15.18",
"typescript": "5.7.3",
"vitest": "2.1.8"
"@types/node": "24.10.1",
"typescript": "5.9.3",
"vitest": "4.0.15"
},
"files": [
"dist"
Expand Down
2 changes: 1 addition & 1 deletion packages/loops/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"loops": "^6.0.1"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/node": "24.10.1",
"tsconfig": "workspace:*",
"typescript": "5.9.3"
}
Expand Down
12 changes: 6 additions & 6 deletions packages/resend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@
"@react-email/components": "0.5.7",
"@react-email/render": "1.4.0",
"nanoid": "5.1.6",
"react": "19.2.0",
"react-dom": "19.2.0",
"react": "19.2.1",
"react-dom": "19.2.1",
"react-email": "4.3.1",
"resend": "6.2.1"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/react": "19.2.2",
"@types/react-dom": "19.2.2",
"prettier": "3.6.2",
"@types/node": "24.10.1",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"prettier": "3.7.4",
"tsconfig": "workspace:*",
"typescript": "5.9.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tinybird-ai-analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"zod": "3.25.46"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/node": "24.10.1",
"tsconfig": "workspace:*",
"typescript": "5.9.3"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/tinybird/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"zod": "3.25.46"
},
"devDependencies": {
"@types/node": "24.9.1",
"@types/node": "24.10.1",
"tsconfig": "workspace:*",
"typescript": "5.9.3"
}
Expand Down
Loading
Loading