The Open Framework for Building Agents
chore(templates): align with peer web apps (#3633)
OwenKephartd54fd760624d
diff --git a/apps/templates/eve-chat-template/.gitignore b/apps/templates/eve-chat-template/.gitignoreindex ead30197d..8ab2998e5 100644--- a/apps/templates/eve-chat-template/.gitignore+++ b/apps/templates/eve-chat-template/.gitignore@@ -12,3 +12,8 @@ dist.DS_Store*.tsbuildinfo.env*.local++apps/web/.next+apps/web/.nuxt+apps/web/.output+apps/web/node_modulesdiff --git a/apps/templates/eve-chat-template/README.md b/apps/templates/eve-chat-template/README.mdindex 4569c288a..533c87105 100644--- a/apps/templates/eve-chat-template/README.md+++ b/apps/templates/eve-chat-template/README.md@@ -37,12 +37,18 @@ Install dependencies with pnpm:pnpm install```-Run locally without additional services:+Run the web app locally without additional services:```bashpnpm dev```+To run the web app and eve as the Vercel service graph, use:++```bash+pnpm dev:services+```+To require the same password locally, put this in `.env.local`:```bash@@ -118,12 +124,14 @@ For production, run migrations with Vercel production env vars:vercel env run -e production -- pnpm db:migrate```-Start the development server:+Start the web app development server:```bashpnpm dev```+Use `pnpm dev:services` to run the full Vercel service graph locally.+## What Is Included- Text chat with an eve agent through same-origin `/eve/v1/*` routes@@ -132,7 +140,7 @@ pnpm dev- Optional Neon-backed cross-device chat history- Optional Upstash Redis rate limiting in production mode- Optional long-term memory in a private Vercel Blob document (per user in production mode)-- Drizzle schema and migrations for production mode under `lib/db`+- Drizzle schema and migrations for production mode under `apps/web/lib/db`- Saved eve session cursors and event snapshots in either storage mode- Sidebar history with delete and new-chat actions- Vercel Connect-backed Notion, Linear, and Sentry MCP connectionsdiff --git a/apps/templates/eve-chat-template/agent/channels/eve.ts b/apps/templates/eve-chat-template/agent/channels/eve.tsindex 0585ea623..80fa987c9 100644--- a/apps/templates/eve-chat-template/agent/channels/eve.ts+++ b/apps/templates/eve-chat-template/agent/channels/eve.ts@@ -1,6 +1,6 @@import { eveChannel } from "eve/channels/eve";import { localDev, vercelOidc } from "eve/channels/auth";-import { betterAuthEveAuth, passwordEveAuth } from "@/lib/eve-auth";+import { betterAuthEveAuth, passwordEveAuth } from "../../apps/web/lib/eve-auth";export default eveChannel({auth: [betterAuthEveAuth, passwordEveAuth, vercelOidc(), localDev()],diff --git a/apps/templates/eve-chat-template/app/(chat)/chat/[id]/loading.tsx b/apps/templates/eve-chat-template/apps/web/app/(chat)/chat/[id]/loading.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/(chat)/chat/[id]/loading.tsxrename to apps/templates/eve-chat-template/apps/web/app/(chat)/chat/[id]/loading.tsxdiff --git a/apps/templates/eve-chat-template/app/(chat)/chat/[id]/page.tsx b/apps/templates/eve-chat-template/apps/web/app/(chat)/chat/[id]/page.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/(chat)/chat/[id]/page.tsxrename to apps/templates/eve-chat-template/apps/web/app/(chat)/chat/[id]/page.tsxdiff --git a/apps/templates/eve-chat-template/app/(chat)/layout.tsx b/apps/templates/eve-chat-template/apps/web/app/(chat)/layout.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/(chat)/layout.tsxrename to apps/templates/eve-chat-template/apps/web/app/(chat)/layout.tsxdiff --git a/apps/templates/eve-chat-template/app/(chat)/page.tsx b/apps/templates/eve-chat-template/apps/web/app/(chat)/page.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/(chat)/page.tsxrename to apps/templates/eve-chat-template/apps/web/app/(chat)/page.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/agent-chat-bootstrap-sync.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-bootstrap-sync.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/agent-chat-bootstrap-sync.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-bootstrap-sync.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/agent-chat-events.ts b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-events.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/agent-chat-events.tsrename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-events.tsdiff --git a/apps/templates/eve-chat-template/app/_components/agent-chat-route-sync.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-route-sync.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/agent-chat-route-sync.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-route-sync.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/agent-chat-shell.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-shell.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/agent-chat-shell.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-shell.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/agent-chat-skeleton.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-skeleton.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/agent-chat-skeleton.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-skeleton.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/agent-chat.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/agent-chat.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/chat-shell-context.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/chat-shell-context.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/chat-shell-context.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/chat-shell-context.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/eve-image-mark.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/eve-image-mark.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/eve-image-mark.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/eve-image-mark.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/home-chat-page.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/home-chat-page.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/home-chat-page.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/home-chat-page.tsxdiff --git a/apps/templates/eve-chat-template/app/_components/session-chat-page.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/session-chat-page.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/_components/session-chat-page.tsxrename to apps/templates/eve-chat-template/apps/web/app/_components/session-chat-page.tsxdiff --git a/apps/templates/eve-chat-template/app/actions/chat.ts b/apps/templates/eve-chat-template/apps/web/app/actions/chat.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/actions/chat.tsrename to apps/templates/eve-chat-template/apps/web/app/actions/chat.tsdiff --git a/apps/templates/eve-chat-template/app/api/auth/[...all]/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/auth/[...all]/route.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/api/auth/[...all]/route.tsrename to apps/templates/eve-chat-template/apps/web/app/api/auth/[...all]/route.tsdiff --git a/apps/templates/eve-chat-template/app/api/bootstrap/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/bootstrap/route.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/api/bootstrap/route.tsrename to apps/templates/eve-chat-template/apps/web/app/api/bootstrap/route.tsdiff --git a/apps/templates/eve-chat-template/app/api/chats/[id]/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/chats/[id]/route.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/api/chats/[id]/route.tsrename to apps/templates/eve-chat-template/apps/web/app/api/chats/[id]/route.tsdiff --git a/apps/templates/eve-chat-template/app/api/chats/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/chats/route.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/api/chats/route.tsrename to apps/templates/eve-chat-template/apps/web/app/api/chats/route.tsdiff --git a/apps/templates/eve-chat-template/app/api/password-auth/login/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/password-auth/login/route.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/api/password-auth/login/route.tsrename to apps/templates/eve-chat-template/apps/web/app/api/password-auth/login/route.tsdiff --git a/apps/templates/eve-chat-template/app/api/password-auth/logout/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/password-auth/logout/route.tssimilarity index 100%rename from apps/templates/eve-chat-template/app/api/password-auth/logout/route.tsrename to apps/templates/eve-chat-template/apps/web/app/api/password-auth/logout/route.tsdiff --git a/apps/templates/eve-chat-template/app/apple-icon.tsx b/apps/templates/eve-chat-template/apps/web/app/apple-icon.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/apple-icon.tsxrename to apps/templates/eve-chat-template/apps/web/app/apple-icon.tsxdiff --git a/apps/templates/eve-chat-template/app/auth/error/page.tsx b/apps/templates/eve-chat-template/apps/web/app/auth/error/page.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/auth/error/page.tsxrename to apps/templates/eve-chat-template/apps/web/app/auth/error/page.tsxdiff --git a/apps/templates/eve-chat-template/app/globals.css b/apps/templates/eve-chat-template/apps/web/app/globals.csssimilarity index 100%rename from apps/templates/eve-chat-template/app/globals.cssrename to apps/templates/eve-chat-template/apps/web/app/globals.cssdiff --git a/apps/templates/eve-chat-template/app/icon.svg b/apps/templates/eve-chat-template/apps/web/app/icon.svgsimilarity index 100%rename from apps/templates/eve-chat-template/app/icon.svgrename to apps/templates/eve-chat-template/apps/web/app/icon.svgdiff --git a/apps/templates/eve-chat-template/app/layout.tsx b/apps/templates/eve-chat-template/apps/web/app/layout.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/app/layout.tsxrename to apps/templates/eve-chat-template/apps/web/app/layout.tsxdiff --git a/apps/templates/eve-chat-template/components/auth/auth-display.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/auth-display.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/auth/auth-display.tsxrename to apps/templates/eve-chat-template/apps/web/components/auth/auth-display.tsxdiff --git a/apps/templates/eve-chat-template/components/auth/password-sign-in-form.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/password-sign-in-form.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/auth/password-sign-in-form.tsxrename to apps/templates/eve-chat-template/apps/web/components/auth/password-sign-in-form.tsxdiff --git a/apps/templates/eve-chat-template/components/auth/sign-in-button.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/sign-in-button.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/auth/sign-in-button.tsxrename to apps/templates/eve-chat-template/apps/web/components/auth/sign-in-button.tsxdiff --git a/apps/templates/eve-chat-template/components/auth/sign-in-modal.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/sign-in-modal.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/auth/sign-in-modal.tsxrename to apps/templates/eve-chat-template/apps/web/components/auth/sign-in-modal.tsxdiff --git a/apps/templates/eve-chat-template/components/auth/user-menu.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/user-menu.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/auth/user-menu.tsxrename to apps/templates/eve-chat-template/apps/web/components/auth/user-menu.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/composer.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/composer.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/composer.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/composer.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/conversation.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/conversation.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/conversation.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/conversation.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/integrations-menu.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/integrations-menu.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/integrations-menu.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/integrations-menu.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/markdown.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/markdown.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/markdown.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/markdown.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/message.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/message.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/message.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/message.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/sidebar.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/sidebar.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/sidebar.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/sidebar.tsxdiff --git a/apps/templates/eve-chat-template/components/chat/template-footer-links.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/template-footer-links.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/chat/template-footer-links.tsxrename to apps/templates/eve-chat-template/apps/web/components/chat/template-footer-links.tsxdiff --git a/apps/templates/eve-chat-template/components/icons.tsx b/apps/templates/eve-chat-template/apps/web/components/icons.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/icons.tsxrename to apps/templates/eve-chat-template/apps/web/components/icons.tsxdiff --git a/apps/templates/eve-chat-template/components/theme-provider.tsx b/apps/templates/eve-chat-template/apps/web/components/theme-provider.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/theme-provider.tsxrename to apps/templates/eve-chat-template/apps/web/components/theme-provider.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/badge.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/badge.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/badge.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/badge.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/button-group.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/button-group.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/button-group.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/button-group.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/button.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/button.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/button.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/button.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/collapsible.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/collapsible.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/collapsible.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/collapsible.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/command.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/command.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/command.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/command.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/dialog.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/dialog.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/dialog.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/dialog.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/dropdown-menu.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/dropdown-menu.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/dropdown-menu.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/dropdown-menu.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/hover-card.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/hover-card.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/hover-card.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/hover-card.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/input-group.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/input-group.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/input-group.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/input-group.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/input.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/input.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/input.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/input.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/select.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/select.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/select.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/select.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/separator.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/separator.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/separator.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/separator.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/spinner.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/spinner.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/spinner.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/spinner.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/textarea.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/textarea.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/textarea.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/textarea.tsxdiff --git a/apps/templates/eve-chat-template/components/ui/tooltip.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/tooltip.tsxsimilarity index 100%rename from apps/templates/eve-chat-template/components/ui/tooltip.tsxrename to apps/templates/eve-chat-template/apps/web/components/ui/tooltip.tsxdiff --git a/apps/templates/eve-chat-template/css.d.ts b/apps/templates/eve-chat-template/apps/web/css.d.tssimilarity index 100%rename from apps/templates/eve-chat-template/css.d.tsrename to apps/templates/eve-chat-template/apps/web/css.d.tsdiff --git a/apps/templates/eve-chat-template/drizzle.config.ts b/apps/templates/eve-chat-template/apps/web/drizzle.config.tssimilarity index 67%rename from apps/templates/eve-chat-template/drizzle.config.tsrename to apps/templates/eve-chat-template/apps/web/drizzle.config.tsindex 0194d4ca7..a8308942d 100644--- a/apps/templates/eve-chat-template/drizzle.config.ts+++ b/apps/templates/eve-chat-template/apps/web/drizzle.config.ts@@ -1,8 +1,8 @@import { defineConfig } from "drizzle-kit";export default defineConfig({- schema: "./lib/db/schema.ts",- out: "./lib/db/migrations",+ schema: "./apps/web/lib/db/schema.ts",+ out: "./apps/web/lib/db/migrations",dialect: "postgresql",dbCredentials: {url: process.env.DATABASE_URL!,diff --git a/apps/templates/eve-chat-template/lib/auth-client.ts b/apps/templates/eve-chat-template/apps/web/lib/auth-client.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/auth-client.tsrename to apps/templates/eve-chat-template/apps/web/lib/auth-client.tsdiff --git a/apps/templates/eve-chat-template/lib/auth-hint.ts b/apps/templates/eve-chat-template/apps/web/lib/auth-hint.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/auth-hint.tsrename to apps/templates/eve-chat-template/apps/web/lib/auth-hint.tsdiff --git a/apps/templates/eve-chat-template/lib/auth-url.ts b/apps/templates/eve-chat-template/apps/web/lib/auth-url.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/auth-url.tsrename to apps/templates/eve-chat-template/apps/web/lib/auth-url.tsdiff --git a/apps/templates/eve-chat-template/lib/auth.ts b/apps/templates/eve-chat-template/apps/web/lib/auth.tssimilarity index 94%rename from apps/templates/eve-chat-template/lib/auth.tsrename to apps/templates/eve-chat-template/apps/web/lib/auth.tsindex db33fc037..f0f389c14 100644--- a/apps/templates/eve-chat-template/lib/auth.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/auth.ts@@ -2,8 +2,8 @@ import { randomUUID } from "node:crypto";import { betterAuth } from "better-auth";import { drizzleAdapter } from "better-auth/adapters/drizzle";import { nextCookies } from "better-auth/next-js";-import { getAppUrlHost, getEffectiveAppUrl } from "@/lib/auth-url";-import { db } from "@/lib/db/client";+import { getAppUrlHost, getEffectiveAppUrl } from "./auth-url";+import { db } from "./db/client";const vercelClientId = process.env.NEXT_PUBLIC_VERCEL_APP_CLIENT_ID?.trim() ?? "";const vercelClientSecret = process.env.VERCEL_APP_CLIENT_SECRET?.trim() ?? "";diff --git a/apps/templates/eve-chat-template/lib/chat/events.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/events.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/chat/events.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/events.tsdiff --git a/apps/templates/eve-chat-template/lib/chat/limits.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/limits.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/chat/limits.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/limits.tsdiff --git a/apps/templates/eve-chat-template/lib/chat/local-store.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/local-store.tssimilarity index 97%rename from apps/templates/eve-chat-template/lib/chat/local-store.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/local-store.tsindex 58bc74ad3..89741d06c 100644--- a/apps/templates/eve-chat-template/lib/chat/local-store.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/chat/local-store.ts@@ -1,8 +1,8 @@"use client";import type { ClientSessionState, MessageStreamEvent } from "eve/client";-import { createFallbackTitle, DEFAULT_CHAT_TITLE } from "@/lib/chat/title";-import type { ActiveChat, ChatListItem } from "@/lib/chat/types";+import { createFallbackTitle, DEFAULT_CHAT_TITLE } from "./title";+import type { ActiveChat, ChatListItem } from "./types";const STORAGE_KEY = "eve-chat-template:chats";const STORAGE_VERSION = 1;diff --git a/apps/templates/eve-chat-template/lib/chat/persistence-client.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/persistence-client.tssimilarity index 97%rename from apps/templates/eve-chat-template/lib/chat/persistence-client.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/persistence-client.tsindex 0cf6c6ff0..0c4880cb4 100644--- a/apps/templates/eve-chat-template/lib/chat/persistence-client.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/chat/persistence-client.ts@@ -23,8 +23,8 @@ import {saveLocalChatSession,saveLocalChatSnapshot,skipLocalChatAuthorization,-} from "@/lib/chat/local-store";-import type { StorageMode } from "@/lib/chat/types";+} from "./local-store";+import type { StorageMode } from "./types";export function listClientChats(storageMode: StorageMode) {return storageMode === "browser" ? listLocalChats() : [];diff --git a/apps/templates/eve-chat-template/lib/chat/provisional-chat.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/provisional-chat.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/chat/provisional-chat.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/provisional-chat.tsdiff --git a/apps/templates/eve-chat-template/lib/chat/sidebar-state.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/sidebar-state.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/chat/sidebar-state.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/sidebar-state.tsdiff --git a/apps/templates/eve-chat-template/lib/chat/title.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/title.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/chat/title.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/title.tsdiff --git a/apps/templates/eve-chat-template/lib/chat/types.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/types.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/chat/types.tsrename to apps/templates/eve-chat-template/apps/web/lib/chat/types.tsdiff --git a/apps/templates/eve-chat-template/lib/db/client.ts b/apps/templates/eve-chat-template/apps/web/lib/db/client.tssimilarity index 97%rename from apps/templates/eve-chat-template/lib/db/client.tsrename to apps/templates/eve-chat-template/apps/web/lib/db/client.tsindex a3154618f..51e1b6872 100644--- a/apps/templates/eve-chat-template/lib/db/client.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/db/client.ts@@ -1,6 +1,6 @@import { neon } from "@neondatabase/serverless";import { drizzle, type NeonHttpDatabase } from "drizzle-orm/neon-http";-import * as schema from "@/lib/db/schema";+import * as schema from "./schema";let database: NeonHttpDatabase<typeof schema> | null = null;diff --git a/apps/templates/eve-chat-template/lib/db/migrations/0000_sparkling_pestilence.sql b/apps/templates/eve-chat-template/apps/web/lib/db/migrations/0000_sparkling_pestilence.sqlsimilarity index 100%rename from apps/templates/eve-chat-template/lib/db/migrations/0000_sparkling_pestilence.sqlrename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/0000_sparkling_pestilence.sqldiff --git a/apps/templates/eve-chat-template/lib/db/migrations/0001_tidy_hitman.sql b/apps/templates/eve-chat-template/apps/web/lib/db/migrations/0001_tidy_hitman.sqlsimilarity index 100%rename from apps/templates/eve-chat-template/lib/db/migrations/0001_tidy_hitman.sqlrename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/0001_tidy_hitman.sqldiff --git a/apps/templates/eve-chat-template/lib/db/migrations/meta/0000_snapshot.json b/apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/0000_snapshot.jsonsimilarity index 100%rename from apps/templates/eve-chat-template/lib/db/migrations/meta/0000_snapshot.jsonrename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/0000_snapshot.jsondiff --git a/apps/templates/eve-chat-template/lib/db/migrations/meta/0001_snapshot.json b/apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/0001_snapshot.jsonsimilarity index 100%rename from apps/templates/eve-chat-template/lib/db/migrations/meta/0001_snapshot.jsonrename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/0001_snapshot.jsondiff --git a/apps/templates/eve-chat-template/lib/db/migrations/meta/_journal.json b/apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/_journal.jsonsimilarity index 100%rename from apps/templates/eve-chat-template/lib/db/migrations/meta/_journal.jsonrename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/_journal.jsondiff --git a/apps/templates/eve-chat-template/lib/db/queries.ts b/apps/templates/eve-chat-template/apps/web/lib/db/queries.tssimilarity index 96%rename from apps/templates/eve-chat-template/lib/db/queries.tsrename to apps/templates/eve-chat-template/apps/web/lib/db/queries.tsindex 77887f621..c59902db7 100644--- a/apps/templates/eve-chat-template/lib/db/queries.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/db/queries.ts@@ -1,11 +1,11 @@import { randomUUID } from "node:crypto";import { and, asc, desc, eq, gte, lt, or, sql } from "drizzle-orm";import type { ClientSessionState, MessageStreamEvent } from "eve/client";-import { isChatTurnSettledEvent } from "@/lib/chat/events";-import type { ActiveChat, ChatListItem, ChatListPage } from "@/lib/chat/types";-import { createFallbackTitle, DEFAULT_CHAT_TITLE } from "@/lib/chat/title";-import { chat, chatEvent } from "@/lib/db/schema";-import { db } from "@/lib/db/client";+import { isChatTurnSettledEvent } from "../chat/events";+import type { ActiveChat, ChatListItem, ChatListPage } from "../chat/types";+import { createFallbackTitle, DEFAULT_CHAT_TITLE } from "../chat/title";+import { chat, chatEvent } from "./schema";+import { db } from "./client";const CHAT_HISTORY_PAGE_SIZE = 20;diff --git a/apps/templates/eve-chat-template/lib/db/schema.ts b/apps/templates/eve-chat-template/apps/web/lib/db/schema.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/db/schema.tsrename to apps/templates/eve-chat-template/apps/web/lib/db/schema.tsdiff --git a/apps/templates/eve-chat-template/lib/eve-auth.ts b/apps/templates/eve-chat-template/apps/web/lib/eve-auth.tssimilarity index 88%rename from apps/templates/eve-chat-template/lib/eve-auth.tsrename to apps/templates/eve-chat-template/apps/web/lib/eve-auth.tsindex 14f3dc502..ed85f208e 100644--- a/apps/templates/eve-chat-template/lib/eve-auth.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/eve-auth.ts@@ -1,7 +1,7 @@import type { AuthFn } from "eve/channels/auth";-import { auth } from "@/lib/auth";-import { getPasswordSessionFromHeaders } from "@/lib/password-auth";-import { getSetupStatus } from "@/lib/setup";+import { auth } from "./auth";+import { getPasswordSessionFromHeaders } from "./password-auth";+import { getSetupStatus } from "./setup";export const betterAuthEveAuth: AuthFn<Request> = async (request) => {const setupStatus = await getSetupStatus();diff --git a/apps/templates/eve-chat-template/lib/password-auth.ts b/apps/templates/eve-chat-template/apps/web/lib/password-auth.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/password-auth.tsrename to apps/templates/eve-chat-template/apps/web/lib/password-auth.tsdiff --git a/apps/templates/eve-chat-template/lib/rate-limit.ts b/apps/templates/eve-chat-template/apps/web/lib/rate-limit.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/rate-limit.tsrename to apps/templates/eve-chat-template/apps/web/lib/rate-limit.tsdiff --git a/apps/templates/eve-chat-template/lib/session.ts b/apps/templates/eve-chat-template/apps/web/lib/session.tssimilarity index 82%rename from apps/templates/eve-chat-template/lib/session.tsrename to apps/templates/eve-chat-template/apps/web/lib/session.tsindex dff0c1901..237ec063a 100644--- a/apps/templates/eve-chat-template/lib/session.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/session.ts@@ -1,8 +1,8 @@import { headers } from "next/headers";-import { auth } from "@/lib/auth";-import type { SetupStatus, Viewer } from "@/lib/chat/types";-import { getPasswordSessionFromHeaders } from "@/lib/password-auth";-import { getSetupStatus } from "@/lib/setup";+import { auth } from "./auth";+import type { SetupStatus, Viewer } from "./chat/types";+import { getPasswordSessionFromHeaders } from "./password-auth";+import { getSetupStatus } from "./setup";const PASSWORD_VIEWER: Viewer = {email: "[email protected]",diff --git a/apps/templates/eve-chat-template/lib/setup.ts b/apps/templates/eve-chat-template/apps/web/lib/setup.tssimilarity index 96%rename from apps/templates/eve-chat-template/lib/setup.tsrename to apps/templates/eve-chat-template/apps/web/lib/setup.tsindex e2369b6eb..e4d8f6b45 100644--- a/apps/templates/eve-chat-template/lib/setup.ts+++ b/apps/templates/eve-chat-template/apps/web/lib/setup.ts@@ -1,5 +1,5 @@-import type { SetupStatus } from "@/lib/chat/types";-import { isDatabaseConfigured, isDatabaseSchemaReady } from "@/lib/db/client";+import type { SetupStatus } from "./chat/types";+import { isDatabaseConfigured, isDatabaseSchemaReady } from "./db/client";const PASSWORD_ENV_KEY = "EVE_CHAT_PASSWORD";const AUTH_ENV_KEYS = [diff --git a/apps/templates/eve-chat-template/lib/utils.ts b/apps/templates/eve-chat-template/apps/web/lib/utils.tssimilarity index 100%rename from apps/templates/eve-chat-template/lib/utils.tsrename to apps/templates/eve-chat-template/apps/web/lib/utils.tsdiff --git a/apps/templates/eve-chat-template/apps/web/next.config.ts b/apps/templates/eve-chat-template/apps/web/next.config.tsnew file mode 100644index 000000000..584cbfce3--- /dev/null+++ b/apps/templates/eve-chat-template/apps/web/next.config.ts@@ -0,0 +1,7 @@+import type { NextConfig } from "next";++const nextConfig: NextConfig = {+ cacheComponents: true,+};++export default nextConfig;diff --git a/apps/templates/eve-chat-template/postcss.config.mjs b/apps/templates/eve-chat-template/apps/web/postcss.config.mjssimilarity index 100%rename from apps/templates/eve-chat-template/postcss.config.mjsrename to apps/templates/eve-chat-template/apps/web/postcss.config.mjsdiff --git a/apps/templates/eve-chat-template/public/eve-chat-template-og.png b/apps/templates/eve-chat-template/apps/web/public/eve-chat-template-og.pngsimilarity index 100%rename from apps/templates/eve-chat-template/public/eve-chat-template-og.pngrename to apps/templates/eve-chat-template/apps/web/public/eve-chat-template-og.pngdiff --git a/apps/templates/eve-chat-template/public/eve.svg b/apps/templates/eve-chat-template/apps/web/public/eve.svgsimilarity index 100%rename from apps/templates/eve-chat-template/public/eve.svgrename to apps/templates/eve-chat-template/apps/web/public/eve.svgdiff --git a/apps/templates/eve-chat-template/tsconfig.json b/apps/templates/eve-chat-template/apps/web/tsconfig.jsonsimilarity index 100%rename from apps/templates/eve-chat-template/tsconfig.jsonrename to apps/templates/eve-chat-template/apps/web/tsconfig.jsondiff --git a/apps/templates/eve-chat-template/docs/how-the-chatbot-works.md b/apps/templates/eve-chat-template/docs/how-the-chatbot-works.mdindex 6112ba1b3..64ba5cb28 100644--- a/apps/templates/eve-chat-template/docs/how-the-chatbot-works.md+++ b/apps/templates/eve-chat-template/docs/how-the-chatbot-works.md@@ -15,45 +15,45 @@ navigation.The template has four major layers:1. The eve agent layer in `agent/`-2. The Next.js shell and page layer in `app/`-3. The chat UI components in `components/chat/`-4. The persistence, auth, setup, and rate-limit layer in `lib/`+2. The Next.js shell and page layer in `apps/web/app/`+3. The chat UI components in `apps/web/components/chat/`+4. The persistence, auth, setup, and rate-limit layer in `apps/web/lib/`Important files:-| File | Purpose |-| --------------------------------------- | --------------------------------------------------------------------------------------------------- |-| `agent/agent.ts` | Defines the eve agent and model. |-| `agent/channels/eve.ts` | Configures the eve web channel and auth adapters. |-| `agent/channels/slack.ts` | Configures the Slack channel route and Vercel Connect credentials. |-| `agent/connections/notion.ts` | Defines the Notion MCP connection through Vercel Connect. |-| `agent/connections/linear.ts` | Defines the Linear MCP connection through Vercel Connect. |-| `agent/connections/sentry.ts` | Defines the Sentry MCP connection through Vercel Connect. |-| `agent/instructions.md` | Defines the agent's behavior and long-term-memory rules. |-| `agent/memory/profile.ts` | Defines the per-principal long-term-memory slot. |-| `next.config.ts` | Wraps the app with `withEve(nextConfig)`, which mounts the `/eve/v1/*` routes. |-| `app/(chat)/layout.tsx` | Renders the static chat shell immediately, then streams viewer/setup/sidebar data through Suspense. |-| `app/(chat)/page.tsx` | Root chat screen. Creates a new chat row and navigates into `/chat/[id]`. |-| `app/(chat)/chat/[id]/page.tsx` | Session route. Streams the active chat data into the client shell. |-| `app/_components/agent-chat-shell.tsx` | Client shell for sidebar state, history pagination, auth modal, and shared chat context. |-| `app/_components/home-chat-page.tsx` | Root-page composer and logo experience. |-| `app/_components/session-chat-page.tsx` | Session-page composer, active chat sync, and controller wiring. |-| `app/_components/agent-chat.tsx` | The eve client bridge: sending, streaming, persistence, resume, pending auth, and display state. |-| `components/chat/composer.tsx` | The controlled chat input. |-| `components/chat/message.tsx` | Renders eve messages, markdown, reasoning, tools, and input requests. |-| `components/chat/sidebar.tsx` | Paginated chat history sidebar. |-| `components/chat/integrations-menu.tsx` | Per-turn connection toggle UI. |-| `app/actions/chat.ts` | Server actions for chat creation, persistence, pending state, skip auth, and rate checks. |-| `app/api/chats/route.ts` | Paginated chat history endpoint. |-| `lib/chat/local-store.ts` | Versioned browser storage for starter-mode chats and eve session cursors. |-| `lib/chat/persistence-client.ts` | Routes client persistence calls to browser or database storage. |-| `lib/db/schema.ts` | Drizzle tables for Better Auth, chats, and chat events. |-| `lib/db/queries.ts` | Chat list, chat load, event save, snapshot save, and delete queries. |-| `lib/setup.ts` | Selects starter, local development, or production mode and validates readiness. |-| `lib/auth.ts` | Better Auth configuration with Sign in with Vercel. |-| `lib/password-auth.ts` | Shared-password verification and stateless signed session cookies. |-| `lib/eve-auth.ts` | Converts password or Better Auth sessions into eve channel principals. |-| `lib/rate-limit.ts` | Upstash Redis based fixed-window rate limiting. |+| File | Purpose |+| ------------------------------------------------ | --------------------------------------------------------------------------------------------------- |+| `agent/agent.ts` | Defines the eve agent and model. |+| `agent/channels/eve.ts` | Configures the eve web channel and auth adapters. |+| `agent/channels/slack.ts` | Configures the Slack channel route and Vercel Connect credentials. |+| `agent/connections/notion.ts` | Defines the Notion MCP connection through Vercel Connect. |+| `agent/connections/linear.ts` | Defines the Linear MCP connection through Vercel Connect. |+| `agent/connections/sentry.ts` | Defines the Sentry MCP connection through Vercel Connect. |+| `agent/instructions.md` | Defines the agent's behavior and long-term-memory rules. |+| `agent/memory/profile.ts` | Defines the per-principal long-term-memory slot. |+| `vercel.ts` | Composes the peer Next.js and eve services for Vercel. |+| `apps/web/app/(chat)/layout.tsx` | Renders the static chat shell immediately, then streams viewer/setup/sidebar data through Suspense. |+| `apps/web/app/(chat)/page.tsx` | Root chat screen. Creates a new chat row and navigates into `/chat/[id]`. |+| `apps/web/app/(chat)/chat/[id]/page.tsx` | Session route. Streams the active chat data into the client shell. |+| `apps/web/app/_components/agent-chat-shell.tsx` | Client shell for sidebar state, history pagination, auth modal, and shared chat context. |+| `apps/web/app/_components/home-chat-page.tsx` | Root-page composer and logo experience. |+| `apps/web/app/_components/session-chat-page.tsx` | Session-page composer, active chat sync, and controller wiring. |+| `apps/web/app/_components/agent-chat.tsx` | The eve client bridge: sending, streaming, persistence, resume, pending auth, and display state. |+| `apps/web/components/chat/composer.tsx` | The controlled chat input. |+| `apps/web/components/chat/message.tsx` | Renders eve messages, markdown, reasoning, tools, and input requests. |+| `apps/web/components/chat/sidebar.tsx` | Paginated chat history sidebar. |+| `apps/web/components/chat/integrations-menu.tsx` | Per-turn connection toggle UI. |+| `apps/web/app/actions/chat.ts` | Server actions for chat creation, persistence, pending state, skip auth, and rate checks. |+| `apps/web/app/api/chats/route.ts` | Paginated chat history endpoint. |+| `apps/web/lib/chat/local-store.ts` | Versioned browser storage for starter-mode chats and eve session cursors. |+| `apps/web/lib/chat/persistence-client.ts` | Routes client persistence calls to browser or database storage. |+| `apps/web/lib/db/schema.ts` | Drizzle tables for Better Auth, chats, and chat events. |+| `apps/web/lib/db/queries.ts` | Chat list, chat load, event save, snapshot save, and delete queries. |+| `apps/web/lib/setup.ts` | Selects starter, local development, or production mode and validates readiness. |+| `apps/web/lib/auth.ts` | Better Auth configuration with Sign in with Vercel. |+| `apps/web/lib/password-auth.ts` | Shared-password verification and stateless signed session cookies. |+| `apps/web/lib/eve-auth.ts` | Converts password or Better Auth sessions into eve channel principals. |+| `apps/web/lib/rate-limit.ts` | Upstash Redis based fixed-window rate limiting. |## Runtime Model@@ -102,7 +102,7 @@ Suspense boundaries.### Shell First-`app/(chat)/layout.tsx` renders this immediately:+`apps/web/app/(chat)/layout.tsx` renders this immediately:```tsx<AgentChatShell@@ -137,7 +137,7 @@ This pattern avoids a blocking route, which would delay the entire page.### Session Route Data-`app/(chat)/chat/[id]/page.tsx` uses the same idea. It renders the session page+`apps/web/app/(chat)/chat/[id]/page.tsx` uses the same idea. It renders the session pageshell first:```tsx@@ -210,7 +210,7 @@ through:## Root Page Flow-The root route is `app/(chat)/page.tsx`, rendered by `HomeChatPage`.+The root route is `apps/web/app/(chat)/page.tsx`, rendered by `HomeChatPage`.The root page is the "start a new chat" experience. It has:@@ -275,7 +275,7 @@ navigation.## eve Client Bridge-Most of the chat logic lives in `app/_components/agent-chat.tsx`.+Most of the chat logic lives in `apps/web/app/_components/agent-chat.tsx`.The core hook is:@@ -317,7 +317,7 @@ When `send(message, options)` or `respond(inputResponses, options)` is called:`/eve/v1/session/:sessionId/stream`.The app never talks directly to a third-party model endpoint. It talks to eve's-same-origin session API, which is mounted by `withEve(nextConfig)`.+same-origin session API, routed to the eve service by `vercel.ts`.### Streaming@@ -338,7 +338,7 @@ For every event:3. Yield it to `useEveAgent`.4. Stop if the event settles the turn.-A turn is considered settled when `lib/chat/events.ts` sees one of:+A turn is considered settled when `apps/web/lib/chat/events.ts` sees one of:```tssession.completed;@@ -612,19 +612,19 @@ development, connectors created with `--name notion`, `--name linear`, andStarter mode uses a shared deployment password. The login route verifies`EVE_CHAT_PASSWORD` and issues a signed, HTTP-only, same-site cookie without a-database. `lib/session.ts` and `lib/eve-auth.ts` verify the same cookie for the+database. `apps/web/lib/session.ts` and `apps/web/lib/eve-auth.ts` verify the same cookie for theNext.js UI and eve route boundary.Production mode uses Better Auth with Sign in with Vercel.-`lib/auth-url.ts` resolves the base app URL in this order:+`apps/web/lib/auth-url.ts` resolves the base app URL in this order:1. `BETTER_AUTH_URL`2. `VERCEL_PROJECT_PRODUCTION_URL`3. `VERCEL_URL`4. `http://localhost:3000`-`lib/auth.ts` configures Better Auth with:+`apps/web/lib/auth.ts` configures Better Auth with:- Drizzle adapter- encrypted OAuth tokens@@ -632,11 +632,11 @@ Production mode uses Better Auth with Sign in with Vercel.- required scopes: `openid`, `email`, `profile`- `/auth/error` as the error page-`lib/session.ts` returns a safe `Viewer` object for server components. It returns+`apps/web/lib/session.ts` returns a safe `Viewer` object for server components. It returnsthe shared starter viewer, local development viewer, or Vercel user dependingon the selected mode.-`lib/eve-auth.ts` adapts the selected app session into an eve channel principal.+`apps/web/lib/eve-auth.ts` adapts the selected app session into an eve channel principal.Production mode uses:```ts@@ -663,7 +663,7 @@ with Vercel OIDC contexts.## Setup Readiness-`lib/setup.ts` produces a `SetupStatus` object:+`apps/web/lib/setup.ts` produces a `SetupStatus` object:```tstype SetupStatus = {@@ -708,7 +708,7 @@ Disabled composers should always provide a reason through tooltip text.## Rate Limiting-Production-mode rate limiting uses Upstash Redis in `lib/rate-limit.ts`.+Production-mode rate limiting uses Upstash Redis in `apps/web/lib/rate-limit.ts`.The app supports either current Upstash env names:@@ -740,7 +740,7 @@ messages.## Message Rendering`useEveAgent` reduces stream events into message data. The template renders that-data through `components/chat/message.tsx`.+data through `apps/web/components/chat/message.tsx`.Message rendering supports:@@ -768,7 +768,7 @@ is still active. It fades out instead of disappearing abruptly.## Composer Behavior-`components/chat/composer.tsx` is controlled by the page:+`apps/web/components/chat/composer.tsx` is controlled by the page:- `value`- `onChange`@@ -856,7 +856,7 @@ To add a local eve tool:3. Import/register it according to eve's agent conventions.4. Update `agent/instructions.md` so the agent knows when to use it.5. If the UI should render a special tool state, update- `components/chat/message.tsx`.+ `apps/web/components/chat/message.tsx`.Keep tool output structured. The message renderer can make much better UIdecisions when tool parts contain predictable JSON instead of prose-only output.@@ -880,13 +880,12 @@ Do not parse assistant text to detect auth requirements. Rely on## Adding A New ChannelThis template exposes a web chat channel through `agent/channels/eve.ts`, a-Slack channel through `agent/channels/slack.ts`, and the `withEve` Next.js-integration.+Slack channel through `agent/channels/slack.ts`, and the peer Next.js service composed with eve in `vercel.ts`.If you add another channel, keep this separation:- channel-specific webhook or transport code belongs in `agent/channels/`-- web chat UI state belongs in `app/_components/` and `components/chat/`+- web chat UI state belongs in `apps/web/app/_components/` and `apps/web/components/chat/`- cross-channel agent behavior belongs in `agent/instructions.md`, tools, andconnectionsdiff --git a/apps/templates/eve-chat-template/docs/setup-and-deploy.md b/apps/templates/eve-chat-template/docs/setup-and-deploy.mdindex f999a3914..5739464eb 100644--- a/apps/templates/eve-chat-template/docs/setup-and-deploy.md+++ b/apps/templates/eve-chat-template/docs/setup-and-deploy.md@@ -233,7 +233,7 @@ See the [Vercel env run docs](https://vercel.com/docs/cli/env) for more examples## Run Locally-Start the app:+Start the web app:```bashpnpm dev@@ -242,7 +242,13 @@ pnpm devOr run it on port 3001:```bash-PORT=3001 pnpm dev -p 3001+PORT=3001 pnpm dev+```++To run the web app and eve as Vercel peer services, use:++```bash+pnpm dev:services```Open the matching local URL and make sure the Vercel App contains the same callback URL.diff --git a/apps/templates/eve-chat-template/next.config.ts b/apps/templates/eve-chat-template/next.config.tsdeleted file mode 100644index 08630ee0d..000000000--- a/apps/templates/eve-chat-template/next.config.ts+++ /dev/null@@ -1,11 +0,0 @@-import type { NextConfig } from "next";-import { withEve } from "eve/next";--const nextConfig: NextConfig = {- cacheComponents: true,- turbopack: {- root: process.cwd(),- },-};--export default withEve(nextConfig);diff --git a/apps/templates/eve-chat-template/package.json b/apps/templates/eve-chat-template/package.jsonindex e450b5cc5..fea2da398 100644--- a/apps/templates/eve-chat-template/package.json+++ b/apps/templates/eve-chat-template/package.json@@ -7,18 +7,20 @@"#evals/*": "./evals/*"},"scripts": {- "build": "next build",- "db:generate": "drizzle-kit generate",- "db:migrate": "drizzle-kit migrate",- "db:migrate:production": "vercel env run -e production -- pnpm db:migrate",- "db:push": "drizzle-kit push",- "db:studio": "drizzle-kit studio",- "dev": "next dev",- "start": "next start",- "typecheck": "next typegen && tsgo --noEmit -p tsconfig.json",+ "build": "pnpm build:eve && pnpm build:web","build:eve": "eve build",+ "build:web": "next build --turbopack apps/web",+ "db:generate": "drizzle-kit generate --config apps/web/drizzle.config.ts",+ "db:migrate": "drizzle-kit migrate --config apps/web/drizzle.config.ts",+ "db:migrate:production": "vercel env run -e production -- pnpm db:migrate",+ "db:push": "drizzle-kit push --config apps/web/drizzle.config.ts",+ "db:studio": "drizzle-kit studio --config apps/web/drizzle.config.ts",+ "dev": "next dev apps/web","dev:eve": "eve dev",- "start:eve": "eve start"+ "dev:services": "vercel dev",+ "dev:web": "next dev apps/web",+ "start:eve": "eve start",+ "typecheck": "next typegen apps/web && tsgo --noEmit -p apps/web/tsconfig.json"},"dependencies": {"@neondatabase/serverless": "1.1.0",@@ -40,7 +42,7 @@"clsx": "2.1.1","cmdk": "1.1.1","drizzle-orm": "0.45.2",- "eve": "^0.54.2",+ "eve": "^0.66.3","lucide-react": "1.33.0","next": "16.3.4","radix-ui": "1.6.7",@@ -62,5 +64,5 @@"microsandbox": "^0.5.10","typescript": "7.0.2"},- "packageManager": "[email protected]"+ "packageManager": "[email protected]"}diff --git a/apps/templates/eve-chat-template/pnpm-lock.yaml b/apps/templates/eve-chat-template/pnpm-lock.yamlindex d1c7b3b27..4c86b69f6 100644--- a/apps/templates/eve-chat-template/pnpm-lock.yaml+++ b/apps/templates/eve-chat-template/pnpm-lock.yaml@@ -43,7 +43,7 @@ importers:version: 2.0.1([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected])'@vercel/connect':specifier: 0.8.0- version: 0.8.0([email protected]([email protected]))([email protected]([email protected])([email protected](@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected]([email protected]([email protected]))([email protected]))+ version: 0.8.0([email protected]([email protected]))([email protected]([email protected])([email protected](@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected]([email protected]([email protected]))([email protected]))'@vercel/speed-insights':specifier: 2.0.0version: 2.0.0([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected])@@ -66,8 +66,8 @@ importers:specifier: 0.45.2version: 0.45.2(@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])eve:- specifier: ^0.54.2+ specifier: ^0.66.3lucide-react:specifier: 1.33.0version: 1.33.0([email protected])@@ -3037,14 +3037,15 @@ packages:resolution: {integrity: sha512-hFtqIDZTIUZ9BXLb8y4pYGyk6+wekIivNVTcmvk8NoOh+VeRn5y6cEHzbURrWbfp1fIqdVipilzj+lfaadNZmg==}- resolution: {integrity: sha512-LqiWleXbsA4upBsl5bkZ9O+qZ6h+WOMzNy/IL79Tz5LLkIjpk4koJq1gdBON80V+butfy/A5fwnOcL8isK+DfQ==}+ resolution: {integrity: sha512-oJkQdVrlmb1GFeaSUNY6IF71ttXjQdFnkKQP+84Qlvs/M+fUqMjGTqnwevQ+qFvc8KCswo3cbBohKOCGdgZPFg==}engines: {node: '>=24'}hasBin: truepeerDependencies:'@opentelemetry/api': ^1.0.0- ai: ^7.0.93+ ai: ^7.0.105braintrust: ^3.0.0+ chat: ^4.41.0dd-trace: ^6.13.0just-bash: ^3.1.0microsandbox: ^0.5.0@@ -3053,6 +3054,8 @@ packages:optional: truebraintrust:optional: true+ chat:+ optional: truedd-trace:optional: truejust-bash:@@ -6039,13 +6042,13 @@ snapshots:dependencies:execa: 5.1.1- '@vercel/[email protected]([email protected]([email protected]))([email protected]([email protected])([email protected](@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected]([email protected]([email protected]))([email protected]))':+ '@vercel/[email protected]([email protected]([email protected]))([email protected]([email protected])([email protected](@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected]))([email protected]([email protected]([email protected]))([email protected]))':dependencies:'@vercel/oidc': 3.8.4optionalDependencies:ai: 7.0.105([email protected])better-auth: 1.7.1([email protected])([email protected](@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected]))([email protected])([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))([email protected]([email protected]))([email protected])'@vercel/[email protected]': {}@@ -6514,7 +6517,7 @@ snapshots:dependencies:ai: 7.0.105([email protected])nitro: 3.0.260903-betadiff --git a/apps/templates/eve-chat-template/pnpm-workspace.yaml b/apps/templates/eve-chat-template/pnpm-workspace.yamlindex 62b435e50..d8658052e 100644--- a/apps/templates/eve-chat-template/pnpm-workspace.yaml+++ b/apps/templates/eve-chat-template/pnpm-workspace.yaml@@ -1,10 +1,8 @@-enableGlobalVirtualStore: false-packages:- "."minimumReleaseAgeExclude:- - "@ai-sdk/*"+ - eve- "@vercel/connect"- ai- evediff --git a/apps/templates/eve-chat-template/vercel.ts b/apps/templates/eve-chat-template/vercel.tsnew file mode 100644index 000000000..53daf95f6--- /dev/null+++ b/apps/templates/eve-chat-template/vercel.ts@@ -0,0 +1,8 @@+import { withEve } from "eve/vercel";++export default await withEve({+ services: {+ web: { framework: "nextjs", root: "apps/web" },+ },+ routes: [{ src: "^(.*)$", destination: { type: "service", service: "web" } }],+});diff --git a/apps/templates/eve-llm-council-template/.gitignore b/apps/templates/eve-llm-council-template/.gitignoreindex f415f4d98..b32852ef7 100644--- a/apps/templates/eve-llm-council-template/.gitignore+++ b/apps/templates/eve-llm-council-template/.gitignore@@ -21,3 +21,8 @@ out/*.log*.tsbuildinfopnpm-debug.log*++apps/web/.next+apps/web/.nuxt+apps/web/.output+apps/web/node_modulesdiff --git a/apps/templates/eve-llm-council-template/README.md b/apps/templates/eve-llm-council-template/README.mdindex d5bd95952..9a91a8543 100644--- a/apps/templates/eve-llm-council-template/README.md+++ b/apps/templates/eve-llm-council-template/README.md@@ -9,7 +9,7 @@ The council uses:- OpenAI GPT-5.6 Sol- Moonshot AI Kimi K3-<img width="1123" alt="LLM council showing four model responses and a synthesized answer" src="./public/llm-council.png" />+<img width="1123" alt="LLM council showing four model responses and a synthesized answer" src="./apps/web/public/llm-council.png" />## Architecture@@ -21,14 +21,14 @@ prompt → four parallel council members → judge answer + agreement scoresThe root [eve agent](https://eve.dev/docs/) delegates the same prompt to four declared [subagents](https://eve.dev/docs/subagents). Each subagent has a fixed AI Gateway model and runs in its own durable session. The Next.js client follows those child [session streams](https://eve.dev/docs/concepts/sessions-runs-and-streaming) so every response appears independently as it is generated.-After all four members finish, the root agent returns a concise answer and per-model agreement scores using a [structured output schema](https://eve.dev/docs/guides/client/output-schema). [`withEve()` and `useEveAgent()`](https://eve.dev/docs/guides/frontend/nextjs) keep the agent routes and UI in the same Next.js application.+After all four members finish, the root agent returns a concise answer and per-model agreement scores using a [structured output schema](https://eve.dev/docs/guides/client/output-schema). [`useEveAgent()`](https://eve.dev/docs/guides/frontend/nextjs) calls the eve service through the shared Vercel deployment.The main pieces are:- `agent/instructions.md` — fan-out and judging behavior- `agent/subagents/` — the four fixed council members- `agent/lib/schemas.ts` — final answer and score schema-- `app/council-app.tsx` — submission, child streaming, and rendering+- `apps/web/app/council-app.tsx` — submission, child streaming, and rendering## Run locally@@ -38,6 +38,12 @@ pnpm exec eve linkpnpm dev```+Run the complete Vercel service graph with:++```bash+pnpm dev:services+```+`eve link` connects the app to a Vercel project and pulls the AI Gateway credentials needed by the models. Open the local URL printed by Next.js.## Checksdiff --git a/apps/templates/eve-llm-council-template/app/council-app.tsx b/apps/templates/eve-llm-council-template/apps/web/app/council-app.tsxsimilarity index 99%rename from apps/templates/eve-llm-council-template/app/council-app.tsxrename to apps/templates/eve-llm-council-template/apps/web/app/council-app.tsxindex e0887fc34..209baedbb 100644--- a/apps/templates/eve-llm-council-template/app/council-app.tsx+++ b/apps/templates/eve-llm-council-template/apps/web/app/council-app.tsx@@ -4,7 +4,7 @@ import { MarkdownClient } from "@comark/react";import { Client, type MessageStreamEvent } from "eve/client";import { useEveAgent } from "eve/react";import { useCallback, useEffect, useRef, useState } from "react";-import { councilResultSchema, type CouncilResult, type MemberId } from "../agent/lib/schemas";+import { councilResultSchema, type CouncilResult, type MemberId } from "../../../agent/lib/schemas";const members: ReadonlyArray<{ id: MemberId; label: string; model: string }> = [{ id: "grok", label: "SpaceXAI", model: "Grok 4.7" },diff --git a/apps/templates/eve-llm-council-template/app/globals.css b/apps/templates/eve-llm-council-template/apps/web/app/globals.csssimilarity index 100%rename from apps/templates/eve-llm-council-template/app/globals.cssrename to apps/templates/eve-llm-council-template/apps/web/app/globals.cssdiff --git a/apps/templates/eve-llm-council-template/app/layout.tsx b/apps/templates/eve-llm-council-template/apps/web/app/layout.tsxsimilarity index 100%rename from apps/templates/eve-llm-council-template/app/layout.tsxrename to apps/templates/eve-llm-council-template/apps/web/app/layout.tsxdiff --git a/apps/templates/eve-llm-council-template/app/page.tsx b/apps/templates/eve-llm-council-template/apps/web/app/page.tsxsimilarity index 100%rename from apps/templates/eve-llm-council-template/app/page.tsxrename to apps/templates/eve-llm-council-template/apps/web/app/page.tsxdiff --git a/apps/templates/eve-llm-council-template/next-env.d.ts b/apps/templates/eve-llm-council-template/apps/web/next-env.d.tssimilarity index 100%rename from apps/templates/eve-llm-council-template/next-env.d.tsrename to apps/templates/eve-llm-council-template/apps/web/next-env.d.tsdiff --git a/apps/templates/eve-llm-council-template/next.config.ts b/apps/templates/eve-llm-council-template/apps/web/next.config.tssimilarity index 52%rename from apps/templates/eve-llm-council-template/next.config.tsrename to apps/templates/eve-llm-council-template/apps/web/next.config.tsindex 882004133..cd73c3dc5 100644--- a/apps/templates/eve-llm-council-template/next.config.ts+++ b/apps/templates/eve-llm-council-template/apps/web/next.config.ts@@ -1,13 +1,9 @@import type { NextConfig } from "next";-import { withEve } from "eve/next";const nextConfig: NextConfig = {experimental: {useTypeScriptCli: true,},- turbopack: {- root: process.cwd(),- },};-export default withEve(nextConfig);+export default nextConfig;diff --git a/apps/templates/eve-llm-council-template/public/llm-council.png b/apps/templates/eve-llm-council-template/apps/web/public/llm-council.pngsimilarity index 100%rename from apps/templates/eve-llm-council-template/public/llm-council.pngrename to apps/templates/eve-llm-council-template/apps/web/public/llm-council.pngdiff --git a/apps/templates/eve-llm-council-template/tsconfig.json b/apps/templates/eve-llm-council-template/apps/web/tsconfig.jsonsimilarity index 100%rename from apps/templates/eve-llm-council-template/tsconfig.jsonrename to apps/templates/eve-llm-council-template/apps/web/tsconfig.jsondiff --git a/apps/templates/eve-llm-council-template/package.json b/apps/templates/eve-llm-council-template/package.jsonindex c0509cbe2..f04dbca69 100644--- a/apps/templates/eve-llm-council-template/package.json+++ b/apps/templates/eve-llm-council-template/package.json@@ -7,15 +7,19 @@"#evals/*": "./evals/*"},"scripts": {- "build": "eve build && next build",- "dev": "next dev",- "start": "next start",- "typecheck": "tsc"+ "build": "pnpm build:eve && pnpm build:web",+ "build:eve": "eve build",+ "build:web": "next build --turbopack apps/web",+ "dev": "next dev apps/web",+ "dev:eve": "eve dev",+ "dev:services": "vercel dev",+ "dev:web": "next dev apps/web",+ "typecheck": "tsc -p apps/web/tsconfig.json"},"dependencies": {"@comark/react": "0.6.2",- "ai": "^7.0.105",- "eve": "^0.54.2",+ "ai": "7.0.105",+ "eve": "^0.66.3","geist": "1.7.2","next": "16.3.4","react": "19.2.8",@@ -28,5 +32,5 @@"@types/react-dom": "~19.2.3","typescript": "7.0.2"},- "packageManager": "[email protected]"+ "packageManager": "[email protected]"}diff --git a/apps/templates/eve-llm-council-template/pnpm-lock.yaml b/apps/templates/eve-llm-council-template/pnpm-lock.yamlindex 83b96aa41..ea6ca2954 100644--- a/apps/templates/eve-llm-council-template/pnpm-lock.yaml+++ b/apps/templates/eve-llm-council-template/pnpm-lock.yaml@@ -12,11 +12,11 @@ importers:specifier: 0.6.2version: 0.6.2([email protected])ai:- specifier: ^7.0.105+ specifier: 7.0.105version: 7.0.105([email protected])eve:- specifier: ^0.54.2- version: 0.54.2([email protected]([email protected]))+ specifier: ^0.66.3+ version: 0.66.3([email protected]([email protected]))geist:specifier: 1.7.2version: 1.7.2([email protected](@types/[email protected])([email protected]([email protected]))([email protected]))@@ -638,14 +638,15 @@ packages:resolution: {integrity: sha512-2iDP2DfheAMMAKeXBggEuFmpSq+1Xs6wQoHba1g65pZFXlC3VHD1O6/tgVzS6GQLv+P2koPKZPKgKhXkigNBdg==}hasBin: true- resolution: {integrity: sha512-LqiWleXbsA4upBsl5bkZ9O+qZ6h+WOMzNy/IL79Tz5LLkIjpk4koJq1gdBON80V+butfy/A5fwnOcL8isK+DfQ==}+ resolution: {integrity: sha512-oJkQdVrlmb1GFeaSUNY6IF71ttXjQdFnkKQP+84Qlvs/M+fUqMjGTqnwevQ+qFvc8KCswo3cbBohKOCGdgZPFg==}engines: {node: '>=24'}hasBin: truepeerDependencies:'@opentelemetry/api': ^1.0.0- ai: ^7.0.93+ ai: ^7.0.105braintrust: ^3.0.0+ chat: ^4.41.0dd-trace: ^6.13.0just-bash: ^3.1.0microsandbox: ^0.5.0@@ -654,6 +655,8 @@ packages:optional: truebraintrust:optional: true+ chat:+ optional: truedd-trace:optional: truejust-bash:@@ -1216,7 +1219,7 @@ snapshots:httpxy: 0.5.5srvx: 1.0.4dependencies:ai: 7.0.105([email protected])nitro: 3.0.260903-betadiff --git a/apps/templates/eve-llm-council-template/vercel.ts b/apps/templates/eve-llm-council-template/vercel.tsnew file mode 100644index 000000000..53daf95f6--- /dev/null+++ b/apps/templates/eve-llm-council-template/vercel.ts@@ -0,0 +1,8 @@+import { withEve } from "eve/vercel";++export default await withEve({+ services: {+ web: { framework: "nextjs", root: "apps/web" },+ },+ routes: [{ src: "^(.*)$", destination: { type: "service", service: "web" } }],+});diff --git a/apps/templates/eve-slack-agent-template/package.json b/apps/templates/eve-slack-agent-template/package.jsonindex b9828aa18..c29350bc9 100644--- a/apps/templates/eve-slack-agent-template/package.json+++ b/apps/templates/eve-slack-agent-template/package.json@@ -15,12 +15,12 @@"dependencies": {"@vercel/connect": "0.8.0","ai": "7.0.105",- "eve": "^0.54.2",+ "eve": "^0.66.3","zod": "4.4.3"},"devDependencies": {"@types/node": "^25.9.3","typescript": "7.0.2"},- "packageManager": "[email protected]"+ "packageManager": "[email protected]"}diff --git a/apps/templates/eve-slack-agent-template/pnpm-lock.yaml b/apps/templates/eve-slack-agent-template/pnpm-lock.yamlindex c726d6325..9c6fcd5a4 100644--- a/apps/templates/eve-slack-agent-template/pnpm-lock.yaml+++ b/apps/templates/eve-slack-agent-template/pnpm-lock.yaml@@ -10,13 +10,13 @@ importers:dependencies:'@vercel/connect':specifier: 0.8.0- version: 0.8.0([email protected]([email protected]))([email protected]([email protected]([email protected])))+ version: 0.8.0([email protected]([email protected]))([email protected]([email protected]([email protected])))ai:specifier: 7.0.105version: 7.0.105([email protected])eve:- specifier: ^0.54.2- version: 0.54.2([email protected]([email protected]))+ specifier: ^0.66.3+ version: 0.66.3([email protected]([email protected]))zod:specifier: 4.4.3version: 4.4.3@@ -344,14 +344,15 @@ packages:resolution: {integrity: sha512-2iDP2DfheAMMAKeXBggEuFmpSq+1Xs6wQoHba1g65pZFXlC3VHD1O6/tgVzS6GQLv+P2koPKZPKgKhXkigNBdg==}hasBin: true- resolution: {integrity: sha512-LqiWleXbsA4upBsl5bkZ9O+qZ6h+WOMzNy/IL79Tz5LLkIjpk4koJq1gdBON80V+butfy/A5fwnOcL8isK+DfQ==}+ resolution: {integrity: sha512-oJkQdVrlmb1GFeaSUNY6IF71ttXjQdFnkKQP+84Qlvs/M+fUqMjGTqnwevQ+qFvc8KCswo3cbBohKOCGdgZPFg==}engines: {node: '>=24'}hasBin: truepeerDependencies:'@opentelemetry/api': ^1.0.0- ai: ^7.0.93+ ai: ^7.0.105braintrust: ^3.0.0+ chat: ^4.41.0dd-trace: ^6.13.0just-bash: ^3.1.0microsandbox: ^0.5.0@@ -360,6 +361,8 @@ packages:optional: truebraintrust:optional: true+ chat:+ optional: truedd-trace:optional: truejust-bash:@@ -670,12 +673,12 @@ snapshots:dependencies:execa: 5.1.1- '@vercel/[email protected]([email protected]([email protected]))([email protected]([email protected]([email protected])))':+ '@vercel/[email protected]([email protected]([email protected]))([email protected]([email protected]([email protected])))':dependencies:'@vercel/oidc': 3.8.4optionalDependencies:ai: 7.0.105([email protected])- eve: 0.54.2([email protected]([email protected]))+ eve: 0.66.3([email protected]([email protected]))'@vercel/[email protected]': {}@@ -715,7 +718,7 @@ snapshots:httpxy: 0.5.5srvx: 1.0.4dependencies:ai: 7.0.105([email protected])nitro: 3.0.260903-betadiff --git a/apps/templates/personal-agent-template/.gitignore b/apps/templates/personal-agent-template/.gitignoreindex 5a6d238a6..94c39706c 100644--- a/apps/templates/personal-agent-template/.gitignore+++ b/apps/templates/personal-agent-template/.gitignore@@ -13,4 +13,8 @@ dist.DS_Store*.tsbuildinfo.nuxt-.pnpm-store\ No newline at end of file+.pnpm-store+apps/web/.next+apps/web/.nuxt+apps/web/.output+apps/web/node_modulesdiff --git a/apps/templates/personal-agent-template/AGENTS.md b/apps/templates/personal-agent-template/AGENTS.mdindex f60f38c44..eef18fe1b 100644--- a/apps/templates/personal-agent-template/AGENTS.md+++ b/apps/templates/personal-agent-template/AGENTS.md@@ -4,23 +4,22 @@ Durable personal AI assistant built with Eve and Nuxt.## Quick Reference-| Command | Description |-| ------------------ | --------------------------- |-| `pnpm install` | Install dependencies |-| `pnpm dev` | Start Nuxt + Eve dev server |-| `pnpm build` | Production build |-| `pnpm typecheck` | TypeScript check |-| `pnpm db:generate` | Generate Drizzle migrations |-| `pnpm db:migrate` | Apply migrations |+| Command | Description |+| ------------------- | ------------------------------------ |+| `pnpm install` | Install dependencies |+| `pnpm dev` | Start the Nuxt web app |+| `pnpm dev:services` | Start the local Vercel service graph |+| `pnpm build` | Production build |+| `pnpm typecheck` | TypeScript check |+| `pnpm db:generate` | Generate Drizzle migrations |+| `pnpm db:migrate` | Apply migrations |## Structure```personal-agent-template/├── agent/ # Eve agent (channels, tools, skills, connections)-├── app/ # Nuxt UI (pages, components, composables)-├── server/ # Nitro API, Drizzle schema, server utils-├── shared/ # Cross-layer types and helpers+├── apps/web/ # Nuxt UI, Nitro API, and shared application code└── docs/ # Architecture, environment, customization```@@ -33,7 +32,7 @@ personal-agent-template/## Eve Framework-This project uses Eve with a Nuxt frontend (`eve/nuxt` module). Before writing agent code, read the relevant guide in `node_modules/eve/dist/docs/public/`.+This project deploys its Nuxt frontend and eve agent as peer Vercel services through `vercel.ts`. Before writing agent code, read the relevant guide in `node_modules/eve/dist/docs/public/`.## Internal API Pattern@@ -43,7 +42,7 @@ The Eve agent calls Nuxt over HTTP:agent/lib/*-internal.ts → /api/internal/* → server/utils/*```-Authenticated with `Authorization: Bearer <INTERNAL_API_SECRET>`. See [`server/utils/internal-api.ts`](server/utils/internal-api.ts).+Authenticated with `Authorization: Bearer <INTERNAL_API_SECRET>`. See [`apps/web/server/utils/internal-api.ts`](apps/web/server/utils/internal-api.ts).## Memory Flow@@ -51,11 +50,11 @@ Authenticated with `Authorization: Bearer <INTERNAL_API_SECRET>`. See [`server/u2. **Agent save** — [`agent/tools/save_memory.ts`](agent/tools/save_memory.ts) with web approval UI3. **Profile UI** — import, view, edit, delete on Settings → Profile-Categories: [`shared/types/memory.ts`](shared/types/memory.ts). One prose block per category; saves replace the full block.+Categories: [`lib/types/memory.ts`](lib/types/memory.ts). One prose block per category; saves replace the full block.## Customization Checklist-- [`shared/agent.ts`](shared/agent.ts) — branding+- [`lib/agent.ts`](lib/agent.ts) — branding- [`agent/lib/base-instructions.ts`](agent/lib/base-instructions.ts) — persona- [`agent/channels/slack.ts`](agent/channels/slack.ts) — Slack Connect slug- [`agent/agent.ts`](agent/agent.ts) — AI modeldiff --git a/apps/templates/personal-agent-template/CONTRIBUTING.md b/apps/templates/personal-agent-template/CONTRIBUTING.mdindex 2414b1e26..949124bb2 100644--- a/apps/templates/personal-agent-template/CONTRIBUTING.md+++ b/apps/templates/personal-agent-template/CONTRIBUTING.md@@ -34,7 +34,7 @@ Set real values in `.env`. Never commit secrets or `.data/`.```personal-agent-template/├── agent/ # Eve agent: channels, tools, skills, connections-├── app/ # Nuxt 4 UI: chat, settings, profile+├── apps/web/ # Nuxt 4 UI: chat, settings, profile├── server/ # Nitro API, Drizzle schema, auth, memory├── shared/ # Types and helpers used by app + agent└── docs/ # Documentation (architecture, env, customization)diff --git a/apps/templates/personal-agent-template/README.md b/apps/templates/personal-agent-template/README.mdindex f2c6cdf99..ad9c87451 100644--- a/apps/templates/personal-agent-template/README.md+++ b/apps/templates/personal-agent-template/README.md@@ -1,4 +1,4 @@-<img src="./public/banner.png" width="100%" alt="Personal Agent Template" />+<img src="./apps/web/public/banner.png" width="100%" alt="Personal Agent Template" /># Personal Agent Template@@ -61,7 +61,7 @@ Morning briefing skill: active focus from memory, assigned Linear issues, and aVercel Connect (Linear, Slack)```-On Vercel, the [`eve/nuxt`](https://eve.dev/docs/guides/frontend/nuxt) module generates `web` (Nuxt) and `eve` (agent runtime) services during the build.+On Vercel, [`vercel.ts`](./vercel.ts) composes the peer `web` (Nuxt) and `eve` (agent runtime) services during the build.## Quick Start@@ -136,7 +136,8 @@ V can also propose facts via **`save_memory`** — approve or skip in chat. Edit## Development```bash-pnpm dev # Nuxt + Eve (eve/nuxt module — see Eve docs)+pnpm dev # Nuxt web app+pnpm dev:services # Vercel dev runs the peer Nuxt and eve servicespnpm typecheck # TypeScript checkpnpm build # Production buildpnpm db:generate # Generate Drizzle migrationsdiff --git a/apps/templates/personal-agent-template/agent/channels/eve.ts b/apps/templates/personal-agent-template/agent/channels/eve.tsindex ae82f45ed..531333520 100644--- a/apps/templates/personal-agent-template/agent/channels/eve.ts+++ b/apps/templates/personal-agent-template/agent/channels/eve.ts@@ -1,31 +1,41 @@import type { AuthFn } from "eve/channels/auth";import { eveChannel } from "eve/channels/eve";import { vercelOidc } from "eve/channels/auth";-import { auth } from "../../auth";-function appSession(): AuthFn<Request> {- return async (request) => {- const session = await auth.api.getSession({- headers: request.headers,- });+type AppUser = {+ email: string;+ id: string;+ name: string;+};- if (!session?.user) {- return null;- }+type AppSession = {+ user?: AppUser;+};- return {- attributes: {- email: session.user.email,- name: session.user.name,- },- authenticator: "app",- issuer: "app",- principalId: session.user.id,- principalType: "user",- };+const appSession: AuthFn<Request> = async (request) => {+ const origin = process.env.BETTER_AUTH_URL?.trim();+ if (!origin) return null;++ const response = await fetch(new URL("/api/auth/get-session", origin), {+ headers: { cookie: request.headers.get("cookie") ?? "" },+ });+ if (!response.ok) return null;++ const session = (await response.json()) as AppSession | null;+ if (!session?.user) return null;++ return {+ attributes: {+ email: session.user.email,+ name: session.user.name,+ },+ authenticator: "app",+ issuer: "app",+ principalId: session.user.id,+ principalType: "user",};-}+};export default eveChannel({- auth: [appSession(), vercelOidc()],+ auth: [appSession, vercelOidc()],});diff --git a/apps/templates/personal-agent-template/agent/channels/sendblue.ts b/apps/templates/personal-agent-template/agent/channels/sendblue.tsindex 9ef88ec06..fd1d643f1 100644--- a/apps/templates/personal-agent-template/agent/channels/sendblue.ts+++ b/apps/templates/personal-agent-template/agent/channels/sendblue.ts@@ -1,8 +1,8 @@import type { ChannelFrom, ChannelSendOptions, ChannelSource } from "eve/channels";import { defineChannel, POST } from "eve/channels";import type { SendblueMessagePayload } from "chat-adapter-sendblue";-import { agent } from "../../shared/agent.js";-import { buildAppSessionAuth } from "../../shared/slack-auth.js";+import { agent } from "../../lib/agent.js";+import { buildAppSessionAuth } from "../../lib/slack-auth.js";import { fetchPhoneLinkForNumber } from "../lib/phone-internal.js";import {contactNumberFromPayload,diff --git a/apps/templates/personal-agent-template/agent/channels/slack.ts b/apps/templates/personal-agent-template/agent/channels/slack.tsindex 857d61013..7f27f1f2e 100644--- a/apps/templates/personal-agent-template/agent/channels/slack.ts+++ b/apps/templates/personal-agent-template/agent/channels/slack.ts@@ -6,7 +6,7 @@ import {type SlackContext,type SlackMessage,} from "eve/channels/slack";-import { buildAppSessionAuth } from "../../shared/slack-auth";+import { buildAppSessionAuth } from "../../lib/slack-auth";import {consumeSlackLinkCodeRemote,fetchSlackLinkForMember,diff --git a/apps/templates/personal-agent-template/agent/lib/base-instructions.ts b/apps/templates/personal-agent-template/agent/lib/base-instructions.tsindex 0d285672a..d68036719 100644--- a/apps/templates/personal-agent-template/agent/lib/base-instructions.ts+++ b/apps/templates/personal-agent-template/agent/lib/base-instructions.ts@@ -1,4 +1,4 @@-import { agent } from "../../shared/agent.js";+import { agent } from "../../lib/agent.js";// Customize agent persona, tone, and behavior rules.export const BASE_INSTRUCTIONS = `# Identitydiff --git a/apps/templates/personal-agent-template/agent/lib/memory-categories.ts b/apps/templates/personal-agent-template/agent/lib/memory-categories.tsindex 51d5a7905..4ae72e2fb 100644--- a/apps/templates/personal-agent-template/agent/lib/memory-categories.ts+++ b/apps/templates/personal-agent-template/agent/lib/memory-categories.ts@@ -1,11 +1,3 @@-// Keep in sync with shared/types/memory.ts — duplicated here because Eve-// cannot resolve Nuxt's #shared alias at runtime.-export const MEMORY_CATEGORIES = [- "work_context",- "personal_context",- "active_focus",- "instructions_preferences",- "project_history",-] as const;+export { MEMORY_CATEGORIES } from "../../lib/types/memory.js";-export type AgentMemoryCategory = (typeof MEMORY_CATEGORIES)[number];+export type { MemoryCategory as AgentMemoryCategory } from "../../lib/types/memory.js";diff --git a/apps/templates/personal-agent-template/agent/lib/memory-internal.ts b/apps/templates/personal-agent-template/agent/lib/memory-internal.tsindex e2a025e6b..487a3ae5b 100644--- a/apps/templates/personal-agent-template/agent/lib/memory-internal.ts+++ b/apps/templates/personal-agent-template/agent/lib/memory-internal.ts@@ -1,5 +1,5 @@-import type { MemoryByCategory } from "../../shared/types/memory.js";-import type { UserProfile } from "../../shared/types/profile.js";+import type { MemoryByCategory } from "../../lib/types/memory.js";+import type { UserProfile } from "../../lib/types/profile.js";import { appOrigin, internalHeaders } from "./internal-api.js";export interface UserContextPayload {diff --git a/apps/templates/personal-agent-template/agent/lib/phone-internal.ts b/apps/templates/personal-agent-template/agent/lib/phone-internal.tsindex 40cc91b45..49020e1d2 100644--- a/apps/templates/personal-agent-template/agent/lib/phone-internal.ts+++ b/apps/templates/personal-agent-template/agent/lib/phone-internal.ts@@ -1,4 +1,4 @@-import type { PhoneLinkRecord } from "../../shared/types/phone-link.js";+import type { PhoneLinkRecord } from "../../lib/types/phone-link.js";import { appOrigin, internalHeaders } from "./internal-api.js";export async function fetchPhoneLinkForNumber(phoneNumber: string) {diff --git a/apps/templates/personal-agent-template/agent/lib/slack-internal.ts b/apps/templates/personal-agent-template/agent/lib/slack-internal.tsindex 2fd33157c..7627d1dfa 100644--- a/apps/templates/personal-agent-template/agent/lib/slack-internal.ts+++ b/apps/templates/personal-agent-template/agent/lib/slack-internal.ts@@ -1,4 +1,4 @@-import type { SlackLinkRecord } from "../../shared/types/slack-link.js";+import type { SlackLinkRecord } from "../../lib/types/slack-link.js";import { appOrigin, internalHeaders } from "./internal-api.js";export async function fetchSlackLinkForMember(teamId: string, userId: string) {diff --git a/apps/templates/personal-agent-template/agent/tools/github.ts b/apps/templates/personal-agent-template/agent/tools/github.tsindex cee532d54..f8a84e346 100644--- a/apps/templates/personal-agent-template/agent/tools/github.ts+++ b/apps/templates/personal-agent-template/agent/tools/github.ts@@ -1,7 +1,7 @@import { buildEveToolMap } from "@github-tools/sdk/eve";import { getToken, UserAuthorizationRequiredError } from "@vercel/connect";import { defineDynamic } from "eve/tools";-import { CONNECT_USER_ISSUER, GITHUB_CONNECTOR } from "../../shared/connect.js";+import { CONNECT_USER_ISSUER, GITHUB_CONNECTOR } from "../../lib/connect.js";export default defineDynamic({events: {diff --git a/apps/templates/personal-agent-template/app/app.config.ts b/apps/templates/personal-agent-template/apps/web/app/app.config.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/app.config.tsrename to apps/templates/personal-agent-template/apps/web/app/app.config.tsdiff --git a/apps/templates/personal-agent-template/app/app.vue b/apps/templates/personal-agent-template/apps/web/app/app.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/app.vuerename to apps/templates/personal-agent-template/apps/web/app/app.vuediff --git a/apps/templates/personal-agent-template/app/assets/css/main.css b/apps/templates/personal-agent-template/apps/web/app/assets/css/main.csssimilarity index 100%rename from apps/templates/personal-agent-template/app/assets/css/main.cssrename to apps/templates/personal-agent-template/apps/web/app/assets/css/main.cssdiff --git a/apps/templates/personal-agent-template/app/components/AgentAuthorizationRequest.vue b/apps/templates/personal-agent-template/apps/web/app/components/AgentAuthorizationRequest.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/AgentAuthorizationRequest.vuerename to apps/templates/personal-agent-template/apps/web/app/components/AgentAuthorizationRequest.vuediff --git a/apps/templates/personal-agent-template/app/components/AgentInputRequest.vue b/apps/templates/personal-agent-template/apps/web/app/components/AgentInputRequest.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/AgentInputRequest.vuerename to apps/templates/personal-agent-template/apps/web/app/components/AgentInputRequest.vuediff --git a/apps/templates/personal-agent-template/app/components/BrandMark.vue b/apps/templates/personal-agent-template/apps/web/app/components/BrandMark.vuesimilarity index 93%rename from apps/templates/personal-agent-template/app/components/BrandMark.vuerename to apps/templates/personal-agent-template/apps/web/app/components/BrandMark.vueindex 27015f9c7..6fc0b8774 100644--- a/apps/templates/personal-agent-template/app/components/BrandMark.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/BrandMark.vue@@ -1,5 +1,5 @@<script setup lang="ts">-import { agent } from "~~/shared/agent";+import { agent } from "#eve/agent";defineProps<{size?: "sm" | "lg";diff --git a/apps/templates/personal-agent-template/app/components/Logo.vue b/apps/templates/personal-agent-template/apps/web/app/components/Logo.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/Logo.vuerename to apps/templates/personal-agent-template/apps/web/app/components/Logo.vuediff --git a/apps/templates/personal-agent-template/app/components/Navbar.vue b/apps/templates/personal-agent-template/apps/web/app/components/Navbar.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/Navbar.vuerename to apps/templates/personal-agent-template/apps/web/app/components/Navbar.vuediff --git a/apps/templates/personal-agent-template/app/components/UserMenu.vue b/apps/templates/personal-agent-template/apps/web/app/components/UserMenu.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/UserMenu.vuerename to apps/templates/personal-agent-template/apps/web/app/components/UserMenu.vuediff --git a/apps/templates/personal-agent-template/app/components/chat/ActivityIndicator.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/ActivityIndicator.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/chat/ActivityIndicator.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/ActivityIndicator.vuediff --git a/apps/templates/personal-agent-template/app/components/chat/Comark.ts b/apps/templates/personal-agent-template/apps/web/app/components/chat/Comark.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/components/chat/Comark.tsrename to apps/templates/personal-agent-template/apps/web/app/components/chat/Comark.tsdiff --git a/apps/templates/personal-agent-template/app/components/chat/Indicator.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/Indicator.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/chat/Indicator.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/Indicator.vuediff --git a/apps/templates/personal-agent-template/app/components/chat/SourceLink.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/SourceLink.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/chat/SourceLink.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/SourceLink.vuediff --git a/apps/templates/personal-agent-template/app/components/chat/StreamInspector.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/StreamInspector.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/chat/StreamInspector.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/StreamInspector.vuediff --git a/apps/templates/personal-agent-template/app/components/chat/ThreadList.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/ThreadList.vuesimilarity index 98%rename from apps/templates/personal-agent-template/app/components/chat/ThreadList.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/ThreadList.vueindex 935aefe62..717dac5e8 100644--- a/apps/templates/personal-agent-template/app/components/chat/ThreadList.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/chat/ThreadList.vue@@ -1,6 +1,6 @@<script setup lang="ts">import type { DropdownMenuItem } from "@nuxt/ui";-import type { ThreadSummary } from "#shared/types/thread";+import type { ThreadSummary } from "#eve/types/thread";import { deleteThread } from "~/composables/chat/navigation";import { useThreadGroups } from "~/composables/chat/useThreadGroups";diff --git a/apps/templates/personal-agent-template/app/components/chat/message/MessageContentEve.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/message/MessageContentEve.vuesimilarity index 98%rename from apps/templates/personal-agent-template/app/components/chat/message/MessageContentEve.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/message/MessageContentEve.vueindex eda7ba251..146cd5d4f 100644--- a/apps/templates/personal-agent-template/app/components/chat/message/MessageContentEve.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/chat/message/MessageContentEve.vue@@ -19,7 +19,7 @@ import {shouldShowToolInput,} from "~/utils/chat/eve";import { buildDisplayParts } from "~/utils/chat/save-memory";-import type { WeatherUIToolInvocation } from "~~/shared/utils/tools/weather";+import type { WeatherUIToolInvocation } from "#eve/utils/tools/weather";const props = defineProps<{message: UIMessage;diff --git a/apps/templates/personal-agent-template/app/components/chat/tool/Sources.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Sources.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/chat/tool/Sources.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Sources.vuediff --git a/apps/templates/personal-agent-template/app/components/chat/tool/ToolSaveMemory.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/tool/ToolSaveMemory.vuesimilarity index 98%rename from apps/templates/personal-agent-template/app/components/chat/tool/ToolSaveMemory.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/tool/ToolSaveMemory.vueindex 79e8dc526..4dc6d163c 100644--- a/apps/templates/personal-agent-template/app/components/chat/tool/ToolSaveMemory.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/chat/tool/ToolSaveMemory.vue@@ -1,6 +1,6 @@<script setup lang="ts">import type { EveDynamicToolPart } from "eve/vue";-import { MEMORY_CATEGORY_LABELS, type MemoryCategory } from "#shared/types/memory";+import { MEMORY_CATEGORY_LABELS, type MemoryCategory } from "#eve/types/memory";import type { AgentInputResponse } from "~/components/AgentInputRequest.vue";import { isSaveMemoryPending, normalizeSaveMemoryInput } from "~/utils/chat/save-memory";diff --git a/apps/templates/personal-agent-template/app/components/chat/tool/Weather.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Weather.vuesimilarity index 97%rename from apps/templates/personal-agent-template/app/components/chat/tool/Weather.vuerename to apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Weather.vueindex 825d1015a..ed8a11120 100644--- a/apps/templates/personal-agent-template/app/components/chat/tool/Weather.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Weather.vue@@ -1,5 +1,5 @@<script setup lang="ts">-import type { WeatherUIToolInvocation } from "~~/shared/utils/tools/weather";+import type { WeatherUIToolInvocation } from "#eve/utils/tools/weather";const props = defineProps<{invocation: WeatherUIToolInvocation;diff --git a/apps/templates/personal-agent-template/app/components/integrations/ConnectorCard.vue b/apps/templates/personal-agent-template/apps/web/app/components/integrations/ConnectorCard.vuesimilarity index 98%rename from apps/templates/personal-agent-template/app/components/integrations/ConnectorCard.vuerename to apps/templates/personal-agent-template/apps/web/app/components/integrations/ConnectorCard.vueindex adfdf6c95..5756e96dc 100644--- a/apps/templates/personal-agent-template/app/components/integrations/ConnectorCard.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/integrations/ConnectorCard.vue@@ -1,5 +1,5 @@<script setup lang="ts">-import type { ConnectorSummary } from "#shared/types/connector";+import type { ConnectorSummary } from "#eve/types/connector";const props = defineProps<{connector: ConnectorSummary;diff --git a/apps/templates/personal-agent-template/app/components/integrations/SlackLinkCard.vue b/apps/templates/personal-agent-template/apps/web/app/components/integrations/SlackLinkCard.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/integrations/SlackLinkCard.vuerename to apps/templates/personal-agent-template/apps/web/app/components/integrations/SlackLinkCard.vuediff --git a/apps/templates/personal-agent-template/app/components/profile/ImportMemoryModal.vue b/apps/templates/personal-agent-template/apps/web/app/components/profile/ImportMemoryModal.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/profile/ImportMemoryModal.vuerename to apps/templates/personal-agent-template/apps/web/app/components/profile/ImportMemoryModal.vuediff --git a/apps/templates/personal-agent-template/app/components/profile/MemorySection.vue b/apps/templates/personal-agent-template/apps/web/app/components/profile/MemorySection.vuesimilarity index 99%rename from apps/templates/personal-agent-template/app/components/profile/MemorySection.vuerename to apps/templates/personal-agent-template/apps/web/app/components/profile/MemorySection.vueindex 235c2d1c6..1cc87316b 100644--- a/apps/templates/personal-agent-template/app/components/profile/MemorySection.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/profile/MemorySection.vue@@ -5,7 +5,7 @@ import {type MemoryByCategory,type MemoryCategory,type MemoryEntry,-} from "#shared/types/memory";+} from "#eve/types/memory";import { formatMemoryDate } from "~/composables/useMemory";const props = defineProps<{diff --git a/apps/templates/personal-agent-template/app/components/profile/PhoneInput.vue b/apps/templates/personal-agent-template/apps/web/app/components/profile/PhoneInput.vuesimilarity index 99%rename from apps/templates/personal-agent-template/app/components/profile/PhoneInput.vuerename to apps/templates/personal-agent-template/apps/web/app/components/profile/PhoneInput.vueindex 7cf09d5f2..5d2a1a0c7 100644--- a/apps/templates/personal-agent-template/app/components/profile/PhoneInput.vue+++ b/apps/templates/personal-agent-template/apps/web/app/components/profile/PhoneInput.vue@@ -1,6 +1,6 @@<script setup lang="ts">import { vMaska } from "maska/vue";-import { formatPhoneNumber, parsePhoneNumber, PHONE_CODES } from "#shared/phone-codes";+import { formatPhoneNumber, parsePhoneNumber, PHONE_CODES } from "#eve/phone-codes";const props = withDefaults(defineProps<{diff --git a/apps/templates/personal-agent-template/app/components/settings/Nav.vue b/apps/templates/personal-agent-template/apps/web/app/components/settings/Nav.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/settings/Nav.vuerename to apps/templates/personal-agent-template/apps/web/app/components/settings/Nav.vuediff --git a/apps/templates/personal-agent-template/app/components/settings/Row.vue b/apps/templates/personal-agent-template/apps/web/app/components/settings/Row.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/settings/Row.vuerename to apps/templates/personal-agent-template/apps/web/app/components/settings/Row.vuediff --git a/apps/templates/personal-agent-template/app/components/settings/Section.vue b/apps/templates/personal-agent-template/apps/web/app/components/settings/Section.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/components/settings/Section.vuerename to apps/templates/personal-agent-template/apps/web/app/components/settings/Section.vuediff --git a/apps/templates/personal-agent-template/app/composables/chat/navigation.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/navigation.tssimilarity index 95%rename from apps/templates/personal-agent-template/app/composables/chat/navigation.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/navigation.tsindex 0ac41af3f..851411f70 100644--- a/apps/templates/personal-agent-template/app/composables/chat/navigation.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/chat/navigation.ts@@ -1,9 +1,9 @@import type { MaybeRefOrGetter } from "vue";import { nextTick, toValue } from "vue";-import type { ThreadRecord, ThreadSummary } from "#shared/types/thread";+import type { ThreadRecord, ThreadSummary } from "#eve/types/thread";import { resetAllEveAgents, removeEveAgent } from "~/composables/chat/providers/eve/init";import { resetStreamLog } from "~/composables/chat/providers/eve/stream-log";-import { truncateThreadTitle } from "#shared/types/thread";+import { truncateThreadTitle } from "#eve/types/thread";import { clearCachedPayloadData } from "~/utils/payload-cache";type PendingMessage = {diff --git a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/adapter.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/adapter.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/adapter.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/adapter.tsdiff --git a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/init.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/init.tssimilarity index 93%rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/init.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/init.tsindex 6ad46e44e..3eead19d1 100644--- a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/init.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/init.ts@@ -1,4 +1,4 @@-import type { EveMessageData, UseEveAgentReturn } from "eve/vue";+import { type EveMessageData, type UseEveAgentReturn, useEveAgent } from "eve/vue";import type { ChatSessionOptions } from "~/composables/chat/types";import { recordAuthorizationEvent } from "~/composables/chat/useAuthorizationChallenges";import { persistThreadState } from "./thread-state";diff --git a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/session.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/session.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/session.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/session.tsdiff --git a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/stream-log.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/stream-log.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/stream-log.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/stream-log.tsdiff --git a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/thread-state.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/thread-state.tssimilarity index 94%rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/thread-state.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/thread-state.tsindex be7152ad4..130aee63b 100644--- a/apps/templates/personal-agent-template/app/composables/chat/providers/eve/thread-state.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/thread-state.ts@@ -1,5 +1,5 @@import type { EveMessageData, UseEveAgentSnapshot } from "eve/vue";-import type { ThreadRecord, ThreadState } from "#shared/types/thread";+import type { ThreadRecord, ThreadState } from "#eve/types/thread";import type { ChatSessionOptions, EveStreamEvent } from "~/composables/chat/types";import { refreshThreadList } from "~/composables/chat/navigation";diff --git a/apps/templates/personal-agent-template/app/composables/chat/types.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/types.tssimilarity index 93%rename from apps/templates/personal-agent-template/app/composables/chat/types.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/types.tsindex 9234d72f1..67d327fa8 100644--- a/apps/templates/personal-agent-template/app/composables/chat/types.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/chat/types.ts@@ -1,6 +1,6 @@import type { ComputedRef, Ref } from "vue";import type { EveMessageData, UseEveAgentOptions } from "eve/vue";-import type { EveSessionCursor } from "#shared/types/thread";+import type { EveSessionCursor } from "#eve/types/thread";import type { UIMessage } from "ai";import type { AgentInputResponse } from "~/components/AgentInputRequest.vue";diff --git a/apps/templates/personal-agent-template/app/composables/chat/useAuthorizationChallenges.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useAuthorizationChallenges.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/composables/chat/useAuthorizationChallenges.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useAuthorizationChallenges.tsdiff --git a/apps/templates/personal-agent-template/app/composables/chat/useChatSession.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useChatSession.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/composables/chat/useChatSession.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useChatSession.tsdiff --git a/apps/templates/personal-agent-template/app/composables/chat/useThreadGroups.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreadGroups.tssimilarity index 97%rename from apps/templates/personal-agent-template/app/composables/chat/useThreadGroups.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreadGroups.tsindex 78ff48e8c..482907fd3 100644--- a/apps/templates/personal-agent-template/app/composables/chat/useThreadGroups.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreadGroups.ts@@ -1,4 +1,4 @@-import type { ThreadSummary } from "#shared/types/thread";+import type { ThreadSummary } from "#eve/types/thread";interface ThreadGroup {id: string;diff --git a/apps/templates/personal-agent-template/app/composables/chat/useThreads.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreads.tssimilarity index 92%rename from apps/templates/personal-agent-template/app/composables/chat/useThreads.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreads.tsindex 6d76ec122..ba6ae417c 100644--- a/apps/templates/personal-agent-template/app/composables/chat/useThreads.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreads.ts@@ -1,4 +1,4 @@-import type { ThreadSummary } from "#shared/types/thread";+import type { ThreadSummary } from "#eve/types/thread";import { THREAD_LIST_KEY, deleteThread, refreshThreadList } from "~/composables/chat/navigation";interface ThreadListResponse {diff --git a/apps/templates/personal-agent-template/app/composables/useConnector.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useConnector.tssimilarity index 96%rename from apps/templates/personal-agent-template/app/composables/useConnector.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/useConnector.tsindex 0b2d973cc..671b946bd 100644--- a/apps/templates/personal-agent-template/app/composables/useConnector.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/useConnector.ts@@ -1,5 +1,5 @@-import { getErrorStatus, getSetupStatus } from "#shared/utils/status";-import type { ConnectorSummary } from "#shared/types/connector";+import { getErrorStatus, getSetupStatus } from "#eve/utils/status";+import type { ConnectorSummary } from "#eve/types/connector";import { getPendingChallenge } from "~/composables/chat/useAuthorizationChallenges";/**diff --git a/apps/templates/personal-agent-template/app/composables/useConnectors.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useConnectors.tssimilarity index 96%rename from apps/templates/personal-agent-template/app/composables/useConnectors.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/useConnectors.tsindex 7edb759ac..6dc0369ca 100644--- a/apps/templates/personal-agent-template/app/composables/useConnectors.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/useConnectors.ts@@ -1,4 +1,4 @@-import type { ConnectorSummary } from "#shared/types/connector";+import type { ConnectorSummary } from "#eve/types/connector";import { resolveAuthorizationChallenge } from "~/composables/chat/useAuthorizationChallenges";/**diff --git a/apps/templates/personal-agent-template/app/composables/useMemory.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useMemory.tssimilarity index 91%rename from apps/templates/personal-agent-template/app/composables/useMemory.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/useMemory.tsindex e9f9f366c..56b9f5fb7 100644--- a/apps/templates/personal-agent-template/app/composables/useMemory.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/useMemory.ts@@ -1,5 +1,5 @@-import type { MemoryByCategory, MemoryEntry } from "#shared/types/memory";-import { MEMORY_EXPORT_PROMPT } from "#shared/memory/export-prompt";+import type { MemoryByCategory, MemoryEntry } from "#eve/types/memory";+import { MEMORY_EXPORT_PROMPT } from "#eve/memory/export-prompt";interface MemoryResponse {memory: MemoryByCategory;diff --git a/apps/templates/personal-agent-template/app/composables/useProfile.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useProfile.tssimilarity index 85%rename from apps/templates/personal-agent-template/app/composables/useProfile.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/useProfile.tsindex 6fc43836d..7cb7c1024 100644--- a/apps/templates/personal-agent-template/app/composables/useProfile.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/useProfile.ts@@ -1,5 +1,5 @@-import type { UserProfileWithUser, UserProfilePatch } from "#shared/types/profile";-import { TIMEZONE_OPTIONS } from "#shared/timezones";+import type { UserProfileWithUser, UserProfilePatch } from "#eve/types/profile";+import { TIMEZONE_OPTIONS } from "#eve/timezones";interface ProfileResponse {profile: UserProfileWithUser;diff --git a/apps/templates/personal-agent-template/app/composables/useSite.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useSite.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/composables/useSite.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/useSite.tsdiff --git a/apps/templates/personal-agent-template/app/composables/useSlackLink.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useSlackLink.tssimilarity index 95%rename from apps/templates/personal-agent-template/app/composables/useSlackLink.tsrename to apps/templates/personal-agent-template/apps/web/app/composables/useSlackLink.tsindex 04c88204b..ea0986406 100644--- a/apps/templates/personal-agent-template/app/composables/useSlackLink.ts+++ b/apps/templates/personal-agent-template/apps/web/app/composables/useSlackLink.ts@@ -1,4 +1,4 @@-import type { SlackLinkSummary } from "#shared/types/slack-link";+import type { SlackLinkSummary } from "#eve/types/slack-link";export function useSlackLink() {const toast = useToast();diff --git a/apps/templates/personal-agent-template/app/layouts/default.vue b/apps/templates/personal-agent-template/apps/web/app/layouts/default.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/layouts/default.vuerename to apps/templates/personal-agent-template/apps/web/app/layouts/default.vuediff --git a/apps/templates/personal-agent-template/app/lib/auth-client.ts b/apps/templates/personal-agent-template/apps/web/app/lib/auth-client.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/lib/auth-client.tsrename to apps/templates/personal-agent-template/apps/web/app/lib/auth-client.tsdiff --git a/apps/templates/personal-agent-template/app/middleware/auth.global.ts b/apps/templates/personal-agent-template/apps/web/app/middleware/auth.global.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/middleware/auth.global.tsrename to apps/templates/personal-agent-template/apps/web/app/middleware/auth.global.tsdiff --git a/apps/templates/personal-agent-template/app/pages/chat/[id].vue b/apps/templates/personal-agent-template/apps/web/app/pages/chat/[id].vuesimilarity index 98%rename from apps/templates/personal-agent-template/app/pages/chat/[id].vuerename to apps/templates/personal-agent-template/apps/web/app/pages/chat/[id].vueindex f2ffdafb9..0c1bf72d4 100644--- a/apps/templates/personal-agent-template/app/pages/chat/[id].vue+++ b/apps/templates/personal-agent-template/apps/web/app/pages/chat/[id].vue@@ -1,5 +1,5 @@<script setup lang="ts">-import type { ThreadRecord } from "#shared/types/thread";+import type { ThreadRecord } from "#eve/types/thread";import { resumeOptionsFromThread } from "~/composables/chat/providers/eve/thread-state";import { useChatNavigation, refreshThreadList } from "~/composables/chat/navigation";import { useAuthorizationChallenges } from "~/composables/chat/useAuthorizationChallenges";diff --git a/apps/templates/personal-agent-template/app/pages/chat/index.vue b/apps/templates/personal-agent-template/apps/web/app/pages/chat/index.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/pages/chat/index.vuerename to apps/templates/personal-agent-template/apps/web/app/pages/chat/index.vuediff --git a/apps/templates/personal-agent-template/app/pages/index.vue b/apps/templates/personal-agent-template/apps/web/app/pages/index.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/pages/index.vuerename to apps/templates/personal-agent-template/apps/web/app/pages/index.vuediff --git a/apps/templates/personal-agent-template/app/pages/login.vue b/apps/templates/personal-agent-template/apps/web/app/pages/login.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/pages/login.vuerename to apps/templates/personal-agent-template/apps/web/app/pages/login.vuediff --git a/apps/templates/personal-agent-template/app/pages/settings/integrations.vue b/apps/templates/personal-agent-template/apps/web/app/pages/settings/integrations.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/pages/settings/integrations.vuerename to apps/templates/personal-agent-template/apps/web/app/pages/settings/integrations.vuediff --git a/apps/templates/personal-agent-template/app/pages/settings/profile.vue b/apps/templates/personal-agent-template/apps/web/app/pages/settings/profile.vuesimilarity index 100%rename from apps/templates/personal-agent-template/app/pages/settings/profile.vuerename to apps/templates/personal-agent-template/apps/web/app/pages/settings/profile.vuediff --git a/apps/templates/personal-agent-template/app/utils/chat/ai.ts b/apps/templates/personal-agent-template/apps/web/app/utils/chat/ai.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/utils/chat/ai.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/chat/ai.tsdiff --git a/apps/templates/personal-agent-template/app/utils/chat/eve.ts b/apps/templates/personal-agent-template/apps/web/app/utils/chat/eve.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/utils/chat/eve.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/chat/eve.tsdiff --git a/apps/templates/personal-agent-template/app/utils/chat/save-memory.ts b/apps/templates/personal-agent-template/apps/web/app/utils/chat/save-memory.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/utils/chat/save-memory.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/chat/save-memory.tsdiff --git a/apps/templates/personal-agent-template/app/utils/connector.ts b/apps/templates/personal-agent-template/apps/web/app/utils/connector.tssimilarity index 95%rename from apps/templates/personal-agent-template/app/utils/connector.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/connector.tsindex b0f374c5e..41d6062af 100644--- a/apps/templates/personal-agent-template/app/utils/connector.ts+++ b/apps/templates/personal-agent-template/apps/web/app/utils/connector.ts@@ -1,4 +1,4 @@-import type { ConnectorState, ParsedTestResult } from "#shared/types/connector";+import type { ConnectorState, ParsedTestResult } from "#eve/types/connector";export function getFetchErrorMessage(error: unknown) {if (error && typeof error === "object" && "data" in error) {diff --git a/apps/templates/personal-agent-template/app/utils/payload-cache.ts b/apps/templates/personal-agent-template/apps/web/app/utils/payload-cache.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/utils/payload-cache.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/payload-cache.tsdiff --git a/apps/templates/personal-agent-template/app/utils/tool.ts b/apps/templates/personal-agent-template/apps/web/app/utils/tool.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/utils/tool.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/tool.tsdiff --git a/apps/templates/personal-agent-template/app/utils/url.ts b/apps/templates/personal-agent-template/apps/web/app/utils/url.tssimilarity index 100%rename from apps/templates/personal-agent-template/app/utils/url.tsrename to apps/templates/personal-agent-template/apps/web/app/utils/url.tsdiff --git a/apps/templates/personal-agent-template/auth.ts b/apps/templates/personal-agent-template/apps/web/auth.tssimilarity index 100%rename from apps/templates/personal-agent-template/auth.tsrename to apps/templates/personal-agent-template/apps/web/auth.tsdiff --git a/apps/templates/personal-agent-template/nuxt.config.ts b/apps/templates/personal-agent-template/apps/web/nuxt.config.tssimilarity index 91%rename from apps/templates/personal-agent-template/nuxt.config.tsrename to apps/templates/personal-agent-template/apps/web/nuxt.config.tsindex 8ed61cddf..586a9bb5b 100644--- a/apps/templates/personal-agent-template/nuxt.config.ts+++ b/apps/templates/personal-agent-template/apps/web/nuxt.config.ts@@ -1,8 +1,13 @@+import { fileURLToPath } from "node:url";+const privateNoStore = { "cache-control": "private, no-store" } as const;const noStore = { "cache-control": "no-store" } as const;export default defineNuxtConfig({- modules: ["@nuxt/ui", "@comark/nuxt", "eve/nuxt", "@nuxthub/core", "@vercel/analytics"],+ modules: ["@nuxt/ui", "@comark/nuxt", "@nuxthub/core", "@vercel/analytics"],+ alias: {+ "#eve": fileURLToPath(new URL("../../lib", import.meta.url)),+ },css: ["~/assets/css/main.css"],devtools: { enabled: true },compatibilityDate: "latest",diff --git a/apps/templates/personal-agent-template/public/banner.png b/apps/templates/personal-agent-template/apps/web/public/banner.pngsimilarity index 100%rename from apps/templates/personal-agent-template/public/banner.pngrename to apps/templates/personal-agent-template/apps/web/public/banner.pngdiff --git a/apps/templates/personal-agent-template/public/favicon.ico b/apps/templates/personal-agent-template/apps/web/public/favicon.icosimilarity index 100%rename from apps/templates/personal-agent-template/public/favicon.icorename to apps/templates/personal-agent-template/apps/web/public/favicon.icodiff --git a/apps/templates/personal-agent-template/public/og.png b/apps/templates/personal-agent-template/apps/web/public/og.pngsimilarity index 100%rename from apps/templates/personal-agent-template/public/og.pngrename to apps/templates/personal-agent-template/apps/web/public/og.pngdiff --git a/apps/templates/personal-agent-template/public/robots.txt b/apps/templates/personal-agent-template/apps/web/public/robots.txtsimilarity index 100%rename from apps/templates/personal-agent-template/public/robots.txtrename to apps/templates/personal-agent-template/apps/web/public/robots.txtdiff --git a/apps/templates/personal-agent-template/server/api/auth/[...all].ts b/apps/templates/personal-agent-template/apps/web/server/api/auth/[...all].tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/auth/[...all].tsrename to apps/templates/personal-agent-template/apps/web/server/api/auth/[...all].tsdiff --git a/apps/templates/personal-agent-template/server/api/connectors.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/connectors.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/connectors.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/connectors.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/integrations/[id]/connect.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/connect.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/integrations/[id]/connect.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/connect.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/integrations/[id]/revoke.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/revoke.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/integrations/[id]/revoke.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/revoke.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/integrations/[id]/test.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/test.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/integrations/[id]/test.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/test.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/internal/memory.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/internal/memory.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/internal/memory.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/internal/memory.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/internal/memory.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/internal/memory.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/internal/memory.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/internal/memory.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/internal/phone/link.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/internal/phone/link.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/internal/phone/link.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/internal/phone/link.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/internal/slack/link/consume.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/internal/slack/link/consume.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/internal/slack/link/consume.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/internal/slack/link/consume.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/internal/slack/link/member.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/internal/slack/link/member.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/internal/slack/link/member.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/internal/slack/link/member.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/memory.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/memory.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/memory.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/memory.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/memory/[id].delete.ts b/apps/templates/personal-agent-template/apps/web/server/api/memory/[id].delete.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/memory/[id].delete.tsrename to apps/templates/personal-agent-template/apps/web/server/api/memory/[id].delete.tsdiff --git a/apps/templates/personal-agent-template/server/api/memory/[id].patch.ts b/apps/templates/personal-agent-template/apps/web/server/api/memory/[id].patch.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/memory/[id].patch.tsrename to apps/templates/personal-agent-template/apps/web/server/api/memory/[id].patch.tsdiff --git a/apps/templates/personal-agent-template/server/api/memory/import.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/memory/import.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/memory/import.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/memory/import.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/profile.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/profile.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/profile.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/profile.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/profile.patch.ts b/apps/templates/personal-agent-template/apps/web/server/api/profile.patch.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/profile.patch.tsrename to apps/templates/personal-agent-template/apps/web/server/api/profile.patch.tsdiff --git a/apps/templates/personal-agent-template/server/api/slack/link.delete.ts b/apps/templates/personal-agent-template/apps/web/server/api/slack/link.delete.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/slack/link.delete.tsrename to apps/templates/personal-agent-template/apps/web/server/api/slack/link.delete.tsdiff --git a/apps/templates/personal-agent-template/server/api/slack/link.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/slack/link.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/slack/link.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/slack/link.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/slack/link/code.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/slack/link/code.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/slack/link/code.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/slack/link/code.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/threads.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads.get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/threads.get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/threads.get.tsdiff --git a/apps/templates/personal-agent-template/server/api/threads.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads.post.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/threads.post.tsrename to apps/templates/personal-agent-template/apps/web/server/api/threads.post.tsdiff --git a/apps/templates/personal-agent-template/server/api/threads/[id].delete.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads/[id].delete.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/threads/[id].delete.tsrename to apps/templates/personal-agent-template/apps/web/server/api/threads/[id].delete.tsdiff --git a/apps/templates/personal-agent-template/server/api/threads/[id].get.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads/[id].get.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/threads/[id].get.tsrename to apps/templates/personal-agent-template/apps/web/server/api/threads/[id].get.tsdiff --git a/apps/templates/personal-agent-template/server/api/threads/[id].patch.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads/[id].patch.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/api/threads/[id].patch.tsrename to apps/templates/personal-agent-template/apps/web/server/api/threads/[id].patch.tsdiff --git a/apps/templates/personal-agent-template/server/connectors.ts b/apps/templates/personal-agent-template/apps/web/server/connectors.tssimilarity index 94%rename from apps/templates/personal-agent-template/server/connectors.tsrename to apps/templates/personal-agent-template/apps/web/server/connectors.tsindex faf74f74e..2b0eef28b 100644--- a/apps/templates/personal-agent-template/server/connectors.ts+++ b/apps/templates/personal-agent-template/apps/web/server/connectors.ts@@ -1,5 +1,5 @@-import type { ConnectorDef } from "#shared/types/connector";-import { GITHUB_CONNECTOR } from "#shared/connect";+import type { ConnectorDef } from "#eve/types/connector";+import { GITHUB_CONNECTOR } from "#eve/connect";import { fetchLinearIssuesViaGraphql, fetchLinearIssuesViaMcp } from "~~/server/utils/linear-mcp";export const connectors: ConnectorDef[] = [diff --git a/apps/templates/personal-agent-template/server/db/migrations/sqlite/0000_initial.sql b/apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/0000_initial.sqlsimilarity index 100%rename from apps/templates/personal-agent-template/server/db/migrations/sqlite/0000_initial.sqlrename to apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/0000_initial.sqldiff --git a/apps/templates/personal-agent-template/server/db/migrations/sqlite/meta/0000_snapshot.json b/apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/meta/0000_snapshot.jsonsimilarity index 100%rename from apps/templates/personal-agent-template/server/db/migrations/sqlite/meta/0000_snapshot.jsonrename to apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/meta/0000_snapshot.jsondiff --git a/apps/templates/personal-agent-template/server/db/migrations/sqlite/meta/_journal.json b/apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/meta/_journal.jsonsimilarity index 100%rename from apps/templates/personal-agent-template/server/db/migrations/sqlite/meta/_journal.jsonrename to apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/meta/_journal.jsondiff --git a/apps/templates/personal-agent-template/server/db/schema.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema.tsdiff --git a/apps/templates/personal-agent-template/server/db/schema/auth.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/auth.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema/auth.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema/auth.tsdiff --git a/apps/templates/personal-agent-template/server/db/schema/memory.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/memory.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema/memory.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema/memory.tsdiff --git a/apps/templates/personal-agent-template/server/db/schema/phone.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/phone.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema/phone.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema/phone.tsdiff --git a/apps/templates/personal-agent-template/server/db/schema/profile.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/profile.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema/profile.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema/profile.tsdiff --git a/apps/templates/personal-agent-template/server/db/schema/slack.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/slack.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema/slack.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema/slack.tsdiff --git a/apps/templates/personal-agent-template/server/db/schema/threads.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/threads.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/db/schema/threads.tsrename to apps/templates/personal-agent-template/apps/web/server/db/schema/threads.tsdiff --git a/apps/templates/personal-agent-template/server/schemas/integrations.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/integrations.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/schemas/integrations.tsrename to apps/templates/personal-agent-template/apps/web/server/schemas/integrations.tsdiff --git a/apps/templates/personal-agent-template/server/schemas/memory.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/memory.tssimilarity index 88%rename from apps/templates/personal-agent-template/server/schemas/memory.tsrename to apps/templates/personal-agent-template/apps/web/server/schemas/memory.tsindex 2b59387ab..95b3ab050 100644--- a/apps/templates/personal-agent-template/server/schemas/memory.ts+++ b/apps/templates/personal-agent-template/apps/web/server/schemas/memory.ts@@ -1,5 +1,5 @@import { z } from "zod";-import { MEMORY_CATEGORIES } from "#shared/types/memory";+import { MEMORY_CATEGORIES } from "#eve/types/memory";export const memoryCategorySchema = z.enum(MEMORY_CATEGORIES);diff --git a/apps/templates/personal-agent-template/server/schemas/phone.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/phone.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/schemas/phone.tsrename to apps/templates/personal-agent-template/apps/web/server/schemas/phone.tsdiff --git a/apps/templates/personal-agent-template/server/schemas/profile.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/profile.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/schemas/profile.tsrename to apps/templates/personal-agent-template/apps/web/server/schemas/profile.tsdiff --git a/apps/templates/personal-agent-template/server/schemas/slack.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/slack.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/schemas/slack.tsrename to apps/templates/personal-agent-template/apps/web/server/schemas/slack.tsdiff --git a/apps/templates/personal-agent-template/server/schemas/threads.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/threads.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/schemas/threads.tsrename to apps/templates/personal-agent-template/apps/web/server/schemas/threads.tsdiff --git a/apps/templates/personal-agent-template/server/utils/auth.ts b/apps/templates/personal-agent-template/apps/web/server/utils/auth.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/auth.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/auth.tsdiff --git a/apps/templates/personal-agent-template/server/utils/connect.ts b/apps/templates/personal-agent-template/apps/web/server/utils/connect.tssimilarity index 97%rename from apps/templates/personal-agent-template/server/utils/connect.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/connect.tsindex 2f0d66de0..d40d5106c 100644--- a/apps/templates/personal-agent-template/server/utils/connect.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/connect.ts@@ -1,5 +1,5 @@-import type { ConnectorDef, ConnectorStatus } from "#shared/types/connector";-import { CONNECT_USER_ISSUER } from "#shared/connect";+import type { ConnectorDef, ConnectorStatus } from "#eve/types/connector";+import { CONNECT_USER_ISSUER } from "#eve/connect";import type { ConnectTokenSubject } from "@vercel/connect";import {ConnectError,diff --git a/apps/templates/personal-agent-template/server/utils/errors.ts b/apps/templates/personal-agent-template/apps/web/server/utils/errors.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/errors.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/errors.tsdiff --git a/apps/templates/personal-agent-template/server/utils/h3-node.ts b/apps/templates/personal-agent-template/apps/web/server/utils/h3-node.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/h3-node.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/h3-node.tsdiff --git a/apps/templates/personal-agent-template/server/utils/internal-api.ts b/apps/templates/personal-agent-template/apps/web/server/utils/internal-api.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/internal-api.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/internal-api.tsdiff --git a/apps/templates/personal-agent-template/server/utils/linear-mcp.ts b/apps/templates/personal-agent-template/apps/web/server/utils/linear-mcp.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/linear-mcp.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/linear-mcp.tsdiff --git a/apps/templates/personal-agent-template/server/utils/memory-import.ts b/apps/templates/personal-agent-template/apps/web/server/utils/memory-import.tssimilarity index 98%rename from apps/templates/personal-agent-template/server/utils/memory-import.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/memory-import.tsindex 837db49fc..e05059495 100644--- a/apps/templates/personal-agent-template/server/utils/memory-import.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/memory-import.ts@@ -5,7 +5,7 @@ import {type MemoryCategory,type MemoryEntry,type MemorySource,-} from "#shared/types/memory";+} from "#eve/types/memory";const HEADER_PATTERN = /^#{1,3}\s*\d*\.?\s*(.+?)\s*$/im;diff --git a/apps/templates/personal-agent-template/server/utils/memory.ts b/apps/templates/personal-agent-template/apps/web/server/utils/memory.tssimilarity index 99%rename from apps/templates/personal-agent-template/server/utils/memory.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/memory.tsindex 145c7217f..df24d8103 100644--- a/apps/templates/personal-agent-template/server/utils/memory.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/memory.ts@@ -6,7 +6,7 @@ import {type MemoryCategory,type MemoryEntry,type MemorySource,-} from "#shared/types/memory";+} from "#eve/types/memory";import { normalizeMemoryContent, parseMemoryImport } from "~~/server/utils/memory-import";function emptyByCategory(): MemoryByCategory {diff --git a/apps/templates/personal-agent-template/server/utils/phone-links.ts b/apps/templates/personal-agent-template/apps/web/server/utils/phone-links.tssimilarity index 96%rename from apps/templates/personal-agent-template/server/utils/phone-links.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/phone-links.tsindex a6a8a48d4..53ea1f7ab 100644--- a/apps/templates/personal-agent-template/server/utils/phone-links.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/phone-links.ts@@ -1,6 +1,6 @@import { eq } from "drizzle-orm";import { db, schema } from "@nuxthub/db";-import type { PhoneLinkRecord } from "#shared/types/phone-link";+import type { PhoneLinkRecord } from "#eve/types/phone-link";const E164_PATTERN = /^\+[1-9]\d{7,14}$/;diff --git a/apps/templates/personal-agent-template/server/utils/profile.ts b/apps/templates/personal-agent-template/apps/web/server/utils/profile.tssimilarity index 98%rename from apps/templates/personal-agent-template/server/utils/profile.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/profile.tsindex a2cd50ef7..8f02b5467 100644--- a/apps/templates/personal-agent-template/server/utils/profile.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/profile.ts@@ -1,6 +1,6 @@import { eq } from "drizzle-orm";import { db, schema } from "@nuxthub/db";-import type { UserProfile, UserProfilePatch, UserProfileWithUser } from "#shared/types/profile";+import type { UserProfile, UserProfilePatch, UserProfileWithUser } from "#eve/types/profile";import {deletePhoneLinkForAppUser,getPhoneLinkForAppUser,diff --git a/apps/templates/personal-agent-template/server/utils/session.ts b/apps/templates/personal-agent-template/apps/web/server/utils/session.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/session.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/session.tsdiff --git a/apps/templates/personal-agent-template/server/utils/slack-link-codes.ts b/apps/templates/personal-agent-template/apps/web/server/utils/slack-link-codes.tssimilarity index 100%rename from apps/templates/personal-agent-template/server/utils/slack-link-codes.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/slack-link-codes.tsdiff --git a/apps/templates/personal-agent-template/server/utils/slack-links.ts b/apps/templates/personal-agent-template/apps/web/server/utils/slack-links.tssimilarity index 96%rename from apps/templates/personal-agent-template/server/utils/slack-links.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/slack-links.tsindex 282fa844c..83303d4a2 100644--- a/apps/templates/personal-agent-template/server/utils/slack-links.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/slack-links.ts@@ -1,7 +1,7 @@import type { H3Event } from "h3";import { and, eq } from "drizzle-orm";import { db, schema } from "@nuxthub/db";-import type { SlackLinkRecord, SlackLinkSummary } from "#shared/types/slack-link";+import type { SlackLinkRecord, SlackLinkSummary } from "#eve/types/slack-link";export interface UpsertSlackLinkInput {appUserId: string;diff --git a/apps/templates/personal-agent-template/server/utils/threads.ts b/apps/templates/personal-agent-template/apps/web/server/utils/threads.tssimilarity index 97%rename from apps/templates/personal-agent-template/server/utils/threads.tsrename to apps/templates/personal-agent-template/apps/web/server/utils/threads.tsindex 5b06947fb..1ff902949 100644--- a/apps/templates/personal-agent-template/server/utils/threads.ts+++ b/apps/templates/personal-agent-template/apps/web/server/utils/threads.ts@@ -1,7 +1,7 @@import { and, desc, eq } from "drizzle-orm";import { db, schema } from "@nuxthub/db";-import type { ThreadRecord, ThreadState, ThreadSummary } from "#shared/types/thread";-import { truncateThreadTitle } from "#shared/types/thread";+import type { ThreadRecord, ThreadState, ThreadSummary } from "#eve/types/thread";+import { truncateThreadTitle } from "#eve/types/thread";const LIST_LIMIT = 50;diff --git a/apps/templates/personal-agent-template/tsconfig.json b/apps/templates/personal-agent-template/apps/web/tsconfig.jsonsimilarity index 100%rename from apps/templates/personal-agent-template/tsconfig.jsonrename to apps/templates/personal-agent-template/apps/web/tsconfig.jsondiff --git a/apps/templates/personal-agent-template/docs/ARCHITECTURE.md b/apps/templates/personal-agent-template/docs/ARCHITECTURE.mdindex 07b29dfda..4158d5b7a 100644--- a/apps/templates/personal-agent-template/docs/ARCHITECTURE.md+++ b/apps/templates/personal-agent-template/docs/ARCHITECTURE.md@@ -22,7 +22,7 @@ flowchart TBskills[Skills and connections: Linear MCP]end- subgraph nuxt [Nuxt app — app/ + server/]+ subgraph nuxt [Nuxt app — apps/web/]api["/api/* — public API"]internal["/api/internal — agent-only"]auth[Better Auth]@@ -44,7 +44,7 @@ flowchart TB| `web` | `/` | Nuxt UI + Nitro API || `eve` | `/_eve_internal/eve` | Eve agent runtime |-The [`eve/nuxt`](https://eve.dev/docs/guides/frontend/nuxt) module generates this service configuration during the Vercel build; [`vercel.json`](../vercel.json) contains only the schema declaration.+[`vercel.ts`](../vercel.ts) composes the peer Nuxt and eve services during the Vercel build.## Project structure@@ -58,17 +58,11 @@ personal-agent-template/│ ├── connections/ # Linear MCP│ ├── lib/ # base-instructions, memory-internal, slack-internal│ └── instructions.ts # session.started hooks (memory injection)-├── app/ # Nuxt frontend-│ ├── pages/ # chat, settings, login-│ ├── components/ # chat UI, profile, integrations-│ └── composables/ # useMemory, useProfile, chat providers-├── server/ # Nitro API-│ ├── api/ # Public + internal routes-│ ├── db/ # Drizzle schema + migrations-│ └── utils/ # memory, profile, auth, connectors-├── shared/ # Cross-layer types and helpers-│ ├── agent.ts # Branding metadata-│ └── types/ # memory, profile, thread, connector+├── apps/web/ # Nuxt frontend, Nitro API, and shared code+│ ├── app/ # pages, components, composables+│ ├── server/ # API, database, and server utilities+│ └── shared/ # cross-layer types and helpers+├── vercel.ts # Peer Vercel service composition└── docs/ # Documentation```@@ -77,9 +71,9 @@ personal-agent-template/### Web chat1. User opens `/chat/[id]` — Nuxt loads thread via `/api/threads`-2. Chat streams through Eve's Nuxt module (`eve/nuxt`)-3. Tool calls render in [`MessageContentEve.vue`](../app/components/chat/message/MessageContentEve.vue)-4. `save_memory` shows approval UI ([`ToolSaveMemory.vue`](../app/components/chat/tool/ToolSaveMemory.vue))+2. Chat streams through the peer eve service routed by Vercel+3. Tool calls render in [`MessageContentEve.vue`](../apps/web/app/components/chat/message/MessageContentEve.vue)+4. `save_memory` shows approval UI ([`ToolSaveMemory.vue`](../apps/web/app/components/chat/tool/ToolSaveMemory.vue))### Session memory injection@@ -118,7 +112,7 @@ Routes under `/api/internal/*` require:Authorization: Bearer <INTERNAL_API_SECRET>```-Validated in [`server/utils/internal-api.ts`](../server/utils/internal-api.ts).+Validated in [`server/utils/internal-api.ts`](../apps/web/server/utils/internal-api.ts).| Route | Purpose || --------------------------------------- | --------------------------------------- |@@ -132,7 +126,7 @@ Agent-side clients live in `agent/lib/*-internal.ts`.## Database-SQLite via [NuxtHub](https://hub.nuxt.com). Schema in [`server/db/schema/`](../server/db/schema/).+SQLite via [NuxtHub](https://hub.nuxt.com). Schema in [`server/db/schema/`](../apps/web/server/db/schema/).Key tables:@@ -150,16 +144,16 @@ Migrations: `pnpm db:generate` → `pnpm db:migrate`.## Memory model-- **Categories** — fixed set in [`shared/types/memory.ts`](../shared/types/memory.ts)+- **Categories** — fixed set in [`lib/types/memory.ts`](../lib/types/memory.ts)- **One block per category** — `setMemoryForCategory` replaces all rows for a category- **Sources** — `import`, `agent`, `manual`-- **Import** — Raycast-style paste parser ([`server/utils/memory-import.ts`](../server/utils/memory-import.ts))+- **Import** — Raycast-style paste parser ([`server/utils/memory-import.ts`](../apps/web/server/utils/memory-import.ts))## Auth-[Better Auth](https://www.better-auth.com) with email/password. Config: [`server/utils/auth.ts`](../server/utils/auth.ts), route: [`server/api/auth/[...all].ts`](../server/api/auth/[...all].ts).+[Better Auth](https://www.better-auth.com) with email/password. Config: [`server/utils/auth.ts`](../apps/web/server/utils/auth.ts), route: [`server/api/auth/[...all].ts`](../apps/web/server/api/auth/[...all].ts).-Global middleware: [`app/middleware/auth.global.ts`](../app/middleware/auth.global.ts).+Global middleware: [`apps/web/app/middleware/auth.global.ts`](../apps/web/app/middleware/auth.global.ts).## Eve docsdiff --git a/apps/templates/personal-agent-template/docs/CUSTOMIZATION.md b/apps/templates/personal-agent-template/docs/CUSTOMIZATION.mdindex c212c76d6..b505a5cc4 100644--- a/apps/templates/personal-agent-template/docs/CUSTOMIZATION.md+++ b/apps/templates/personal-agent-template/docs/CUSTOMIZATION.md@@ -8,7 +8,7 @@ Personal Agent Template ships with **V** as the example persona. This guide cove### Branding metadata-Edit [`shared/agent.ts`](../shared/agent.ts):+Edit [`lib/agent.ts`](../lib/agent.ts):```typescriptexport const agent = {@@ -22,9 +22,9 @@ export const agent = {} as const;```-Also update site metadata in [`app/app.config.ts`](../app/app.config.ts) (`site.name`, `site.title`, `site.description`, `site.tagline`).+Also update site metadata in [`apps/web/app/app.config.ts`](../apps/web/app/app.config.ts) (`site.name`, `site.title`, `site.description`, `site.tagline`).-Replace branding assets in [`public/`](../public/):+Replace branding assets in [`apps/web/public/`](../apps/web/public/):| File | Purpose || ------------- | --------------------------------- |@@ -32,7 +32,7 @@ Replace branding assets in [`public/`](../public/):| `og.png` | Open Graph / Twitter card preview || `favicon.ico` | Browser tab icon |-Use your own design files when ready — keep them in `public/` and update `site.ogImage` in [`app/app.config.ts`](../app/app.config.ts) if the path changes.+Use your own design files when ready — keep them in `apps/web/public/` and update `site.ogImage` in [`apps/web/app/app.config.ts`](../apps/web/app/app.config.ts) if the path changes.This name appears in the navbar, settings, and integration cards.@@ -61,7 +61,7 @@ See Eve docs for supported models and provider options.## 3. Memory categories-Categories are defined in [`shared/types/memory.ts`](../shared/types/memory.ts):+Categories are defined in [`lib/types/memory.ts`](../lib/types/memory.ts):- `MEMORY_CATEGORIES` — enum values- `MEMORY_CATEGORY_LABELS` — UI labels@@ -69,7 +69,7 @@ Categories are defined in [`shared/types/memory.ts`](../shared/types/memory.ts):If you add or rename categories, also update:-- [`shared/memory/export-prompt.ts`](../shared/memory/export-prompt.ts) — ChatGPT export prompt+- [`lib/memory/export-prompt.ts`](../lib/memory/export-prompt.ts) — ChatGPT export prompt- [`agent/tools/save_memory.ts`](../agent/tools/save_memory.ts) — imports categories from shared typesEach category stores **one prose block**. Saves replace the entire block, not partial deltas.@@ -78,20 +78,20 @@ Each category stores **one prose block**. Saves replace the entire block, not pa1. Create `agent/tools/my-tool.ts` using Eve's `defineTool`2. Register it in Eve's tool discovery (auto-loaded from `agent/tools/` by convention — verify in Eve docs)-3. Add a UI component in `app/components/chat/tool/` if the tool needs custom rendering-4. Wire the component in [`app/components/chat/message/MessageContentEve.vue`](../app/components/chat/message/MessageContentEve.vue)+3. Add a UI component in `apps/web/app/components/chat/tool/` if the tool needs custom rendering+4. Wire the component in [`apps/web/app/components/chat/message/MessageContentEve.vue`](../apps/web/app/components/chat/message/MessageContentEve.vue)See existing tools: [`agent/tools/weather.ts`](../agent/tools/weather.ts), [`agent/tools/save_memory.ts`](../agent/tools/save_memory.ts).## 5. Add a skill-Skills are markdown files in [`agent/skills/`](../agent/skills/). See [`daily-summary.md`](../agent/skills/daily-summary.md) for an example. Reference skills from home quick actions in [`app/pages/index.vue`](../app/pages/index.vue).+Skills are markdown files in [`agent/skills/`](../agent/skills/). See [`daily-summary.md`](../agent/skills/daily-summary.md) for an example. Reference skills from home quick actions in [`apps/web/app/pages/index.vue`](../apps/web/app/pages/index.vue).## 6. Integrations### GitHub-Uses Vercel Connect OAuth and [@github-tools/sdk/eve](https://github-tools.com/frameworks/eve). Connector UID: [`shared/connect.ts`](../shared/connect.ts) (`GITHUB_CONNECTOR`), registry: [`server/connectors.ts`](../server/connectors.ts), tools: [`agent/tools/github.ts`](../agent/tools/github.ts).+Uses Vercel Connect OAuth and [@github-tools/sdk/eve](https://github-tools.com/frameworks/eve). Connector UID: [`lib/connect.ts`](../lib/connect.ts) (`GITHUB_CONNECTOR`), registry: [`server/connectors.ts`](../apps/web/server/connectors.ts), tools: [`agent/tools/github.ts`](../agent/tools/github.ts).1. Create a GitHub connector in Vercel Connect:@@ -100,7 +100,7 @@ Uses Vercel Connect OAuth and [@github-tools/sdk/eve](https://github-tools.com/fvercel connect attach github/personal-agent```-2. Update `GITHUB_CONNECTOR` in [`shared/connect.ts`](../shared/connect.ts) if it differs from `vercel connect list`+2. Update `GITHUB_CONNECTOR` in [`lib/connect.ts`](../lib/connect.ts) if it differs from `vercel connect list`3. Open **Settings → Integrations** and connect4. Ask about repos, PRs, or issues in chat@@ -145,14 +145,14 @@ Users add an E.164 number on **Profile**. Required for Sendblue/iMessage auth## 7. Theme the UI-- Global styles: [`app/assets/css/main.css`](../app/assets/css/main.css)-- Nuxt UI config: [`app/app.config.ts`](../app/app.config.ts)-- Layout and navigation: [`app/layouts/default.vue`](../app/layouts/default.vue), [`app/components/Navbar.vue`](../app/components/Navbar.vue)+- Global styles: [`apps/web/app/assets/css/main.css`](../apps/web/app/assets/css/main.css)+- Nuxt UI config: [`apps/web/app/app.config.ts`](../apps/web/app/app.config.ts)+- Layout and navigation: [`apps/web/app/layouts/default.vue`](../apps/web/app/layouts/default.vue), [`apps/web/app/components/Navbar.vue`](../apps/web/app/components/Navbar.vue)## 8. Deploy your forkSee [Deploy on Vercel](../README.md#deploy-on-vercel) in the README. Remember:-- Dual services: `web` + `eve` ([`vercel.json`](../vercel.json))+- Dual services: `web` + `eve` ([`vercel.ts`](../vercel.ts))- Same env vars on both services- Run migrations for production databasediff --git a/apps/templates/personal-agent-template/docs/ENVIRONMENT.md b/apps/templates/personal-agent-template/docs/ENVIRONMENT.mdindex 2fd6eb90d..a53edc863 100644--- a/apps/templates/personal-agent-template/docs/ENVIRONMENT.md+++ b/apps/templates/personal-agent-template/docs/ENVIRONMENT.md@@ -118,7 +118,7 @@ On Vercel, Eve handles provider configuration through the platform. For local deIntegrations use [Vercel Connect](https://vercel.com/docs/connect) — no extra env vars in this repo for Linear or GitHub OAuth, but you must:1. Create Connect resources (GitHub, Linear MCP, Slack) in your Vercel team-2. Update connector UIDs in [`shared/connect.ts`](../shared/connect.ts) (GitHub) or [`agent/channels/slack.ts`](../agent/channels/slack.ts) (Slack, default: `slack/v`)+2. Update connector UIDs in [`lib/connect.ts`](../lib/connect.ts) (GitHub) or [`agent/channels/slack.ts`](../agent/channels/slack.ts) (Slack, default: `slack/v`)3. Connect clients in **Settings → Integrations** in the appSee [Customization](./CUSTOMIZATION.md#integrations) for setup steps.diff --git a/apps/templates/personal-agent-template/shared/agent.ts b/apps/templates/personal-agent-template/lib/agent.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/agent.tsrename to apps/templates/personal-agent-template/lib/agent.tsdiff --git a/apps/templates/personal-agent-template/shared/connect.ts b/apps/templates/personal-agent-template/lib/connect.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/connect.tsrename to apps/templates/personal-agent-template/lib/connect.tsdiff --git a/apps/templates/personal-agent-template/shared/memory/export-prompt.ts b/apps/templates/personal-agent-template/lib/memory/export-prompt.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/memory/export-prompt.tsrename to apps/templates/personal-agent-template/lib/memory/export-prompt.tsdiff --git a/apps/templates/personal-agent-template/shared/phone-codes.ts b/apps/templates/personal-agent-template/lib/phone-codes.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/phone-codes.tsrename to apps/templates/personal-agent-template/lib/phone-codes.tsdiff --git a/apps/templates/personal-agent-template/shared/slack-auth.ts b/apps/templates/personal-agent-template/lib/slack-auth.tssimilarity index 88%rename from apps/templates/personal-agent-template/shared/slack-auth.tsrename to apps/templates/personal-agent-template/lib/slack-auth.tsindex b547ce613..95c46bce2 100644--- a/apps/templates/personal-agent-template/shared/slack-auth.ts+++ b/apps/templates/personal-agent-template/lib/slack-auth.ts@@ -1,4 +1,4 @@-import { CONNECT_USER_ISSUER } from "#shared/connect";+import { CONNECT_USER_ISSUER } from "./connect";export function buildAppSessionAuth(appUserId: string,diff --git a/apps/templates/personal-agent-template/shared/timezones.ts b/apps/templates/personal-agent-template/lib/timezones.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/timezones.tsrename to apps/templates/personal-agent-template/lib/timezones.tsdiff --git a/apps/templates/personal-agent-template/shared/tools/weather.ts b/apps/templates/personal-agent-template/lib/tools/weather.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/tools/weather.tsrename to apps/templates/personal-agent-template/lib/tools/weather.tsdiff --git a/apps/templates/personal-agent-template/shared/types/connector.ts b/apps/templates/personal-agent-template/lib/types/connector.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/types/connector.tsrename to apps/templates/personal-agent-template/lib/types/connector.tsdiff --git a/apps/templates/personal-agent-template/shared/types/memory.ts b/apps/templates/personal-agent-template/lib/types/memory.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/types/memory.tsrename to apps/templates/personal-agent-template/lib/types/memory.tsdiff --git a/apps/templates/personal-agent-template/shared/types/phone-link.ts b/apps/templates/personal-agent-template/lib/types/phone-link.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/types/phone-link.tsrename to apps/templates/personal-agent-template/lib/types/phone-link.tsdiff --git a/apps/templates/personal-agent-template/shared/types/profile.ts b/apps/templates/personal-agent-template/lib/types/profile.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/types/profile.tsrename to apps/templates/personal-agent-template/lib/types/profile.tsdiff --git a/apps/templates/personal-agent-template/shared/types/slack-link.ts b/apps/templates/personal-agent-template/lib/types/slack-link.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/types/slack-link.tsrename to apps/templates/personal-agent-template/lib/types/slack-link.tsdiff --git a/apps/templates/personal-agent-template/shared/types/thread.ts b/apps/templates/personal-agent-template/lib/types/thread.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/types/thread.tsrename to apps/templates/personal-agent-template/lib/types/thread.tsdiff --git a/apps/templates/personal-agent-template/shared/utils/status.ts b/apps/templates/personal-agent-template/lib/utils/status.tssimilarity index 100%rename from apps/templates/personal-agent-template/shared/utils/status.tsrename to apps/templates/personal-agent-template/lib/utils/status.tsdiff --git a/apps/templates/personal-agent-template/shared/utils/tools/weather.ts b/apps/templates/personal-agent-template/lib/utils/tools/weather.tssimilarity index 68%rename from apps/templates/personal-agent-template/shared/utils/tools/weather.tsrename to apps/templates/personal-agent-template/lib/utils/tools/weather.tsindex 88a3d3785..564faabd1 100644--- a/apps/templates/personal-agent-template/shared/utils/tools/weather.ts+++ b/apps/templates/personal-agent-template/lib/utils/tools/weather.ts@@ -1,5 +1,5 @@import type { DynamicToolUIPart } from "ai";-import type { WeatherOutput } from "~~/shared/tools/weather";+import type { WeatherOutput } from "../../tools/weather";export type WeatherUIToolInvocation = DynamicToolUIPart & {output: WeatherOutput;diff --git a/apps/templates/personal-agent-template/package.json b/apps/templates/personal-agent-template/package.jsonindex 347590180..ad21b4ba0 100644--- a/apps/templates/personal-agent-template/package.json+++ b/apps/templates/personal-agent-template/package.json@@ -16,12 +16,17 @@"#*": "./agent/*"},"scripts": {- "build": "nuxt build",- "dev": "nuxt dev",- "start": "nuxt preview",- "typecheck": "nuxt typecheck",- "db:generate": "nuxt db generate",- "db:migrate": "nuxt db migrate"+ "build": "pnpm build:eve && pnpm build:web",+ "build:eve": "eve build",+ "build:web": "nuxt build --cwd apps/web",+ "dev": "nuxt dev --cwd apps/web",+ "dev:eve": "eve dev",+ "dev:services": "vercel dev",+ "dev:web": "nuxt dev --cwd apps/web",+ "start": "nuxt preview --cwd apps/web",+ "typecheck": "nuxt typecheck --cwd apps/web",+ "db:generate": "nuxt db generate --cwd apps/web",+ "db:migrate": "nuxt db migrate --cwd apps/web"},"dependencies": {"@comark/nuxt": "^0.6.2",@@ -32,13 +37,13 @@"@shikijs/langs": "^4.4.3","@vercel/analytics": "^2.0.1","@vercel/connect": "0.8.0",- "ai": "^7.0.105",+ "ai": "7.0.105","better-auth": "^1.7.1","chat": "^4.38.1","chat-adapter-sendblue": "^0.2.0","drizzle-kit": "^0.31.10","drizzle-orm": "^0.45.2",- "eve": "^0.54.2",+ "eve": "^0.66.3","maska": "^3.2.0","nuxt": "4.5.2","shiki": "^4.4.3",@@ -58,5 +63,5 @@"engines": {"node": ">=24"},- "packageManager": "[email protected]"+ "packageManager": "[email protected]"}diff --git a/apps/templates/personal-agent-template/pnpm-lock.yaml b/apps/templates/personal-agent-template/pnpm-lock.yamlindex 185227ae7..5e7a480b4 100644--- a/apps/templates/personal-agent-template/pnpm-lock.yaml+++ b/apps/templates/personal-agent-template/pnpm-lock.yaml@@ -13,7 +13,7 @@ importers:version: 0.6.2([email protected])([email protected])([email protected](99e75a557cede4926b71c8c93d703d06))([email protected])([email protected])([email protected]([email protected])([email protected])([email protected])([email protected](@types/[email protected])([email protected])([email protected])([email protected])([email protected])([email protected])))([email protected]([email protected]))'@github-tools/sdk':specifier: ^1.11.1- version: 1.11.1(@vercel/[email protected]([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected])))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])+ version: 1.11.1(@vercel/[email protected]([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected])))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected]))([email protected])'@libsql/client':specifier: ^0.17.4version: 0.17.4@@ -31,9 +31,9 @@ importers:version: 2.0.1([email protected](99e75a557cede4926b71c8c93d703d06))([email protected])([email protected]([email protected]))'@vercel/connect':specifier: 0.8.0- version: 0.8.0([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]))+ version: 0.8.0([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected]))ai:- specifier: ^7.0.105+ specifier: 7.0.105version: 7.0.105([email protected])better-auth:specifier: ^1.7.1@@ -51,8 +51,8 @@ importers:specifier: ^0.45.2version: 0.45.2(@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected])eve:- specifier: ^0.54.2+ specifier: ^0.66.3+ version: 0.66.3([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected])maska:specifier: ^3.2.0version: 3.2.0@@ -3939,14 +3939,15 @@ packages:resolution: {integrity: sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg==}engines: {node: '>= 0.6'}- resolution: {integrity: sha512-LqiWleXbsA4upBsl5bkZ9O+qZ6h+WOMzNy/IL79Tz5LLkIjpk4koJq1gdBON80V+butfy/A5fwnOcL8isK+DfQ==}+ resolution: {integrity: sha512-oJkQdVrlmb1GFeaSUNY6IF71ttXjQdFnkKQP+84Qlvs/M+fUqMjGTqnwevQ+qFvc8KCswo3cbBohKOCGdgZPFg==}engines: {node: '>=24'}hasBin: truepeerDependencies:'@opentelemetry/api': ^1.0.0- ai: ^7.0.93+ ai: ^7.0.105braintrust: ^3.0.0+ chat: ^4.41.0dd-trace: ^6.13.0just-bash: ^3.1.0microsandbox: ^0.5.0@@ -3955,6 +3956,8 @@ packages:optional: truebraintrust:optional: true+ chat:+ optional: truedd-trace:optional: truejust-bash:@@ -7229,14 +7232,14 @@ snapshots:- '@vue/composition-api'- vue- '@github-tools/[email protected](@vercel/[email protected]([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected])))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]))([email protected])':+ '@github-tools/[email protected](@vercel/[email protected]([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected])))([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected]))([email protected])':dependencies:ai: 7.0.105([email protected])octokit: 5.0.5zod: 4.4.3optionalDependencies:- '@vercel/connect': 0.8.0([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]))+ '@vercel/connect': 0.8.0([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected]))+ eve: 0.66.3([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected])'@iconify-json/[email protected]':dependencies:@@ -9255,13 +9258,13 @@ snapshots:dependencies:execa: 5.1.1- '@vercel/[email protected]([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]))':+ '@vercel/[email protected]([email protected]([email protected]))([email protected](@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected])))([email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected]))':dependencies:'@vercel/oidc': 3.8.4optionalDependencies:ai: 7.0.105([email protected])better-auth: 1.7.1(@cloudflare/[email protected])([email protected])([email protected])([email protected](@cloudflare/[email protected])(@libsql/[email protected])(@types/[email protected])([email protected])([email protected]))([email protected]([email protected]))([email protected])([email protected]([email protected]))+ eve: 0.66.3([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected])dependencies:@@ -10290,12 +10293,13 @@ snapshots:+ [email protected]([email protected]([email protected]))([email protected]([email protected]([email protected]))([email protected])([email protected]))([email protected]):dependencies:ai: 7.0.105([email protected])nitro: 3.0.260903-betaundici: 8.9.0optionalDependencies:microsandbox: 0.6.12diff --git a/apps/templates/personal-agent-template/pnpm-workspace.yaml b/apps/templates/personal-agent-template/pnpm-workspace.yamlindex 335a9215f..2e02c4aad 100644--- a/apps/templates/personal-agent-template/pnpm-workspace.yaml+++ b/apps/templates/personal-agent-template/pnpm-workspace.yaml@@ -1,10 +1,8 @@-enableGlobalVirtualStore: false-packages:- "."minimumReleaseAgeExclude:- - "@ai-sdk/*"+ - eve- "@vercel/connect"- ai- evediff --git a/apps/templates/personal-agent-template/vercel.json b/apps/templates/personal-agent-template/vercel.jsondeleted file mode 100644index 20fc77e7e..000000000--- a/apps/templates/personal-agent-template/vercel.json+++ /dev/null@@ -1,3 +0,0 @@-{- "$schema": "https://openapi.vercel.sh/vercel.json"-}diff --git a/apps/templates/personal-agent-template/vercel.ts b/apps/templates/personal-agent-template/vercel.tsnew file mode 100644index 000000000..bc93958b0--- /dev/null+++ b/apps/templates/personal-agent-template/vercel.ts@@ -0,0 +1,8 @@+import { withEve } from "eve/vercel";++export default await withEve({+ services: {+ web: { framework: "nuxt", root: "apps/web" },+ },+ routes: [{ src: "^(.*)$", destination: { type: "service", service: "web" } }],+});