Skip to content

armgit / eve

Public Imported from GitHub
0

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/.gitignore
index 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_modules
diff --git a/apps/templates/eve-chat-template/README.md b/apps/templates/eve-chat-template/README.md
index 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:
```bash
pnpm 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:
```bash
pnpm 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 connections
diff --git a/apps/templates/eve-chat-template/agent/channels/eve.ts b/apps/templates/eve-chat-template/agent/channels/eve.ts
index 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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/(chat)/chat/[id]/loading.tsx
rename to apps/templates/eve-chat-template/apps/web/app/(chat)/chat/[id]/loading.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/(chat)/chat/[id]/page.tsx
rename to apps/templates/eve-chat-template/apps/web/app/(chat)/chat/[id]/page.tsx
diff --git a/apps/templates/eve-chat-template/app/(chat)/layout.tsx b/apps/templates/eve-chat-template/apps/web/app/(chat)/layout.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/(chat)/layout.tsx
rename to apps/templates/eve-chat-template/apps/web/app/(chat)/layout.tsx
diff --git a/apps/templates/eve-chat-template/app/(chat)/page.tsx b/apps/templates/eve-chat-template/apps/web/app/(chat)/page.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/(chat)/page.tsx
rename to apps/templates/eve-chat-template/apps/web/app/(chat)/page.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/agent-chat-bootstrap-sync.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-bootstrap-sync.tsx
diff --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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/agent-chat-events.ts
rename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-events.ts
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/agent-chat-route-sync.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-route-sync.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/agent-chat-shell.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-shell.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/agent-chat-skeleton.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat-skeleton.tsx
diff --git a/apps/templates/eve-chat-template/app/_components/agent-chat.tsx b/apps/templates/eve-chat-template/apps/web/app/_components/agent-chat.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/agent-chat.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/agent-chat.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/chat-shell-context.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/chat-shell-context.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/eve-image-mark.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/eve-image-mark.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/home-chat-page.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/home-chat-page.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/_components/session-chat-page.tsx
rename to apps/templates/eve-chat-template/apps/web/app/_components/session-chat-page.tsx
diff --git a/apps/templates/eve-chat-template/app/actions/chat.ts b/apps/templates/eve-chat-template/apps/web/app/actions/chat.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/actions/chat.ts
rename to apps/templates/eve-chat-template/apps/web/app/actions/chat.ts
diff --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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/api/auth/[...all]/route.ts
rename to apps/templates/eve-chat-template/apps/web/app/api/auth/[...all]/route.ts
diff --git a/apps/templates/eve-chat-template/app/api/bootstrap/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/bootstrap/route.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/api/bootstrap/route.ts
rename to apps/templates/eve-chat-template/apps/web/app/api/bootstrap/route.ts
diff --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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/api/chats/[id]/route.ts
rename to apps/templates/eve-chat-template/apps/web/app/api/chats/[id]/route.ts
diff --git a/apps/templates/eve-chat-template/app/api/chats/route.ts b/apps/templates/eve-chat-template/apps/web/app/api/chats/route.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/api/chats/route.ts
rename to apps/templates/eve-chat-template/apps/web/app/api/chats/route.ts
diff --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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/api/password-auth/login/route.ts
rename to apps/templates/eve-chat-template/apps/web/app/api/password-auth/login/route.ts
diff --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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/app/api/password-auth/logout/route.ts
rename to apps/templates/eve-chat-template/apps/web/app/api/password-auth/logout/route.ts
diff --git a/apps/templates/eve-chat-template/app/apple-icon.tsx b/apps/templates/eve-chat-template/apps/web/app/apple-icon.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/apple-icon.tsx
rename to apps/templates/eve-chat-template/apps/web/app/apple-icon.tsx
diff --git a/apps/templates/eve-chat-template/app/auth/error/page.tsx b/apps/templates/eve-chat-template/apps/web/app/auth/error/page.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/auth/error/page.tsx
rename to apps/templates/eve-chat-template/apps/web/app/auth/error/page.tsx
diff --git a/apps/templates/eve-chat-template/app/globals.css b/apps/templates/eve-chat-template/apps/web/app/globals.css
similarity index 100%
rename from apps/templates/eve-chat-template/app/globals.css
rename to apps/templates/eve-chat-template/apps/web/app/globals.css
diff --git a/apps/templates/eve-chat-template/app/icon.svg b/apps/templates/eve-chat-template/apps/web/app/icon.svg
similarity index 100%
rename from apps/templates/eve-chat-template/app/icon.svg
rename to apps/templates/eve-chat-template/apps/web/app/icon.svg
diff --git a/apps/templates/eve-chat-template/app/layout.tsx b/apps/templates/eve-chat-template/apps/web/app/layout.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/app/layout.tsx
rename to apps/templates/eve-chat-template/apps/web/app/layout.tsx
diff --git a/apps/templates/eve-chat-template/components/auth/auth-display.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/auth-display.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/auth/auth-display.tsx
rename to apps/templates/eve-chat-template/apps/web/components/auth/auth-display.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/auth/password-sign-in-form.tsx
rename to apps/templates/eve-chat-template/apps/web/components/auth/password-sign-in-form.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/auth/sign-in-button.tsx
rename to apps/templates/eve-chat-template/apps/web/components/auth/sign-in-button.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/auth/sign-in-modal.tsx
rename to apps/templates/eve-chat-template/apps/web/components/auth/sign-in-modal.tsx
diff --git a/apps/templates/eve-chat-template/components/auth/user-menu.tsx b/apps/templates/eve-chat-template/apps/web/components/auth/user-menu.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/auth/user-menu.tsx
rename to apps/templates/eve-chat-template/apps/web/components/auth/user-menu.tsx
diff --git a/apps/templates/eve-chat-template/components/chat/composer.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/composer.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/composer.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/composer.tsx
diff --git a/apps/templates/eve-chat-template/components/chat/conversation.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/conversation.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/conversation.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/conversation.tsx
diff --git a/apps/templates/eve-chat-template/components/chat/integrations-menu.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/integrations-menu.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/integrations-menu.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/integrations-menu.tsx
diff --git a/apps/templates/eve-chat-template/components/chat/markdown.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/markdown.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/markdown.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/markdown.tsx
diff --git a/apps/templates/eve-chat-template/components/chat/message.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/message.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/message.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/message.tsx
diff --git a/apps/templates/eve-chat-template/components/chat/sidebar.tsx b/apps/templates/eve-chat-template/apps/web/components/chat/sidebar.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/sidebar.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/sidebar.tsx
diff --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.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/chat/template-footer-links.tsx
rename to apps/templates/eve-chat-template/apps/web/components/chat/template-footer-links.tsx
diff --git a/apps/templates/eve-chat-template/components/icons.tsx b/apps/templates/eve-chat-template/apps/web/components/icons.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/icons.tsx
rename to apps/templates/eve-chat-template/apps/web/components/icons.tsx
diff --git a/apps/templates/eve-chat-template/components/theme-provider.tsx b/apps/templates/eve-chat-template/apps/web/components/theme-provider.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/theme-provider.tsx
rename to apps/templates/eve-chat-template/apps/web/components/theme-provider.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/badge.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/badge.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/badge.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/badge.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/button-group.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/button-group.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/button-group.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/button-group.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/button.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/button.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/button.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/button.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/collapsible.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/collapsible.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/collapsible.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/collapsible.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/command.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/command.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/command.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/command.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/dialog.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/dialog.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/dialog.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/dialog.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/dropdown-menu.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/dropdown-menu.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/dropdown-menu.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/dropdown-menu.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/hover-card.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/hover-card.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/hover-card.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/hover-card.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/input-group.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/input-group.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/input-group.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/input-group.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/input.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/input.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/input.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/input.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/select.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/select.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/select.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/select.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/separator.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/separator.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/separator.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/separator.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/spinner.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/spinner.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/spinner.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/spinner.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/textarea.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/textarea.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/textarea.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/textarea.tsx
diff --git a/apps/templates/eve-chat-template/components/ui/tooltip.tsx b/apps/templates/eve-chat-template/apps/web/components/ui/tooltip.tsx
similarity index 100%
rename from apps/templates/eve-chat-template/components/ui/tooltip.tsx
rename to apps/templates/eve-chat-template/apps/web/components/ui/tooltip.tsx
diff --git a/apps/templates/eve-chat-template/css.d.ts b/apps/templates/eve-chat-template/apps/web/css.d.ts
similarity index 100%
rename from apps/templates/eve-chat-template/css.d.ts
rename to apps/templates/eve-chat-template/apps/web/css.d.ts
diff --git a/apps/templates/eve-chat-template/drizzle.config.ts b/apps/templates/eve-chat-template/apps/web/drizzle.config.ts
similarity index 67%
rename from apps/templates/eve-chat-template/drizzle.config.ts
rename to apps/templates/eve-chat-template/apps/web/drizzle.config.ts
index 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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/auth-client.ts
rename to apps/templates/eve-chat-template/apps/web/lib/auth-client.ts
diff --git a/apps/templates/eve-chat-template/lib/auth-hint.ts b/apps/templates/eve-chat-template/apps/web/lib/auth-hint.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/auth-hint.ts
rename to apps/templates/eve-chat-template/apps/web/lib/auth-hint.ts
diff --git a/apps/templates/eve-chat-template/lib/auth-url.ts b/apps/templates/eve-chat-template/apps/web/lib/auth-url.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/auth-url.ts
rename to apps/templates/eve-chat-template/apps/web/lib/auth-url.ts
diff --git a/apps/templates/eve-chat-template/lib/auth.ts b/apps/templates/eve-chat-template/apps/web/lib/auth.ts
similarity index 94%
rename from apps/templates/eve-chat-template/lib/auth.ts
rename to apps/templates/eve-chat-template/apps/web/lib/auth.ts
index 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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/chat/events.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/events.ts
diff --git a/apps/templates/eve-chat-template/lib/chat/limits.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/limits.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/chat/limits.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/limits.ts
diff --git a/apps/templates/eve-chat-template/lib/chat/local-store.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/local-store.ts
similarity index 97%
rename from apps/templates/eve-chat-template/lib/chat/local-store.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/local-store.ts
index 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.ts
similarity index 97%
rename from apps/templates/eve-chat-template/lib/chat/persistence-client.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/persistence-client.ts
index 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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/chat/provisional-chat.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/provisional-chat.ts
diff --git a/apps/templates/eve-chat-template/lib/chat/sidebar-state.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/sidebar-state.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/chat/sidebar-state.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/sidebar-state.ts
diff --git a/apps/templates/eve-chat-template/lib/chat/title.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/title.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/chat/title.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/title.ts
diff --git a/apps/templates/eve-chat-template/lib/chat/types.ts b/apps/templates/eve-chat-template/apps/web/lib/chat/types.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/chat/types.ts
rename to apps/templates/eve-chat-template/apps/web/lib/chat/types.ts
diff --git a/apps/templates/eve-chat-template/lib/db/client.ts b/apps/templates/eve-chat-template/apps/web/lib/db/client.ts
similarity index 97%
rename from apps/templates/eve-chat-template/lib/db/client.ts
rename to apps/templates/eve-chat-template/apps/web/lib/db/client.ts
index 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.sql
similarity index 100%
rename from apps/templates/eve-chat-template/lib/db/migrations/0000_sparkling_pestilence.sql
rename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/0000_sparkling_pestilence.sql
diff --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.sql
similarity index 100%
rename from apps/templates/eve-chat-template/lib/db/migrations/0001_tidy_hitman.sql
rename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/0001_tidy_hitman.sql
diff --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.json
similarity index 100%
rename from apps/templates/eve-chat-template/lib/db/migrations/meta/0000_snapshot.json
rename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/0000_snapshot.json
diff --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.json
similarity index 100%
rename from apps/templates/eve-chat-template/lib/db/migrations/meta/0001_snapshot.json
rename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/0001_snapshot.json
diff --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.json
similarity index 100%
rename from apps/templates/eve-chat-template/lib/db/migrations/meta/_journal.json
rename to apps/templates/eve-chat-template/apps/web/lib/db/migrations/meta/_journal.json
diff --git a/apps/templates/eve-chat-template/lib/db/queries.ts b/apps/templates/eve-chat-template/apps/web/lib/db/queries.ts
similarity index 96%
rename from apps/templates/eve-chat-template/lib/db/queries.ts
rename to apps/templates/eve-chat-template/apps/web/lib/db/queries.ts
index 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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/db/schema.ts
rename to apps/templates/eve-chat-template/apps/web/lib/db/schema.ts
diff --git a/apps/templates/eve-chat-template/lib/eve-auth.ts b/apps/templates/eve-chat-template/apps/web/lib/eve-auth.ts
similarity index 88%
rename from apps/templates/eve-chat-template/lib/eve-auth.ts
rename to apps/templates/eve-chat-template/apps/web/lib/eve-auth.ts
index 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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/password-auth.ts
rename to apps/templates/eve-chat-template/apps/web/lib/password-auth.ts
diff --git a/apps/templates/eve-chat-template/lib/rate-limit.ts b/apps/templates/eve-chat-template/apps/web/lib/rate-limit.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/rate-limit.ts
rename to apps/templates/eve-chat-template/apps/web/lib/rate-limit.ts
diff --git a/apps/templates/eve-chat-template/lib/session.ts b/apps/templates/eve-chat-template/apps/web/lib/session.ts
similarity index 82%
rename from apps/templates/eve-chat-template/lib/session.ts
rename to apps/templates/eve-chat-template/apps/web/lib/session.ts
index 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 = {
diff --git a/apps/templates/eve-chat-template/lib/setup.ts b/apps/templates/eve-chat-template/apps/web/lib/setup.ts
similarity index 96%
rename from apps/templates/eve-chat-template/lib/setup.ts
rename to apps/templates/eve-chat-template/apps/web/lib/setup.ts
index 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.ts
similarity index 100%
rename from apps/templates/eve-chat-template/lib/utils.ts
rename to apps/templates/eve-chat-template/apps/web/lib/utils.ts
diff --git a/apps/templates/eve-chat-template/apps/web/next.config.ts b/apps/templates/eve-chat-template/apps/web/next.config.ts
new file mode 100644
index 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.mjs
similarity index 100%
rename from apps/templates/eve-chat-template/postcss.config.mjs
rename to apps/templates/eve-chat-template/apps/web/postcss.config.mjs
diff --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.png
similarity index 100%
rename from apps/templates/eve-chat-template/public/eve-chat-template-og.png
rename to apps/templates/eve-chat-template/apps/web/public/eve-chat-template-og.png
diff --git a/apps/templates/eve-chat-template/public/eve.svg b/apps/templates/eve-chat-template/apps/web/public/eve.svg
similarity index 100%
rename from apps/templates/eve-chat-template/public/eve.svg
rename to apps/templates/eve-chat-template/apps/web/public/eve.svg
diff --git a/apps/templates/eve-chat-template/tsconfig.json b/apps/templates/eve-chat-template/apps/web/tsconfig.json
similarity index 100%
rename from apps/templates/eve-chat-template/tsconfig.json
rename to apps/templates/eve-chat-template/apps/web/tsconfig.json
diff --git a/apps/templates/eve-chat-template/docs/how-the-chatbot-works.md b/apps/templates/eve-chat-template/docs/how-the-chatbot-works.md
index 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 page
shell 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:
```ts
session.completed;
@@ -612,19 +612,19 @@ development, connectors created with `--name notion`, `--name linear`, and
Starter 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 the
Next.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 returns
the shared starter viewer, local development viewer, or Vercel user depending
on 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:
```ts
type 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 UI
decisions 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 Channel
This 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, and
connections
diff --git a/apps/templates/eve-chat-template/docs/setup-and-deploy.md b/apps/templates/eve-chat-template/docs/setup-and-deploy.md
index 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:
```bash
pnpm dev
@@ -242,7 +242,13 @@ pnpm dev
Or 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.ts
deleted file mode 100644
index 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.json
index 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.yaml
index 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:
'@vercel/connect':
specifier: 0.8.0
'@vercel/speed-insights':
specifier: 2.0.0
@@ -66,8 +66,8 @@ importers:
specifier: 0.45.2
version: 0.45.2(@neondatabase/[email protected])(@types/[email protected])(@upstash/[email protected])([email protected])
eve:
- specifier: ^0.54.2
+ specifier: ^0.66.3
lucide-react:
specifier: 1.33.0
version: 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: true
peerDependencies:
'@opentelemetry/api': ^1.0.0
- ai: ^7.0.93
+ ai: ^7.0.105
braintrust: ^3.0.0
+ chat: ^4.41.0
dd-trace: ^6.13.0
just-bash: ^3.1.0
microsandbox: ^0.5.0
@@ -3053,6 +3054,8 @@ packages:
optional: true
braintrust:
optional: true
+ chat:
+ optional: true
dd-trace:
optional: true
just-bash:
@@ -6039,13 +6042,13 @@ snapshots:
dependencies:
execa: 5.1.1
dependencies:
'@vercel/oidc': 3.8.4
optionalDependencies:
ai: 7.0.105([email protected])
'@vercel/[email protected]': {}
@@ -6514,7 +6517,7 @@ snapshots:
dependencies:
ai: 7.0.105([email protected])
nitro: 3.0.260903-beta
diff --git a/apps/templates/eve-chat-template/pnpm-workspace.yaml b/apps/templates/eve-chat-template/pnpm-workspace.yaml
index 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
- eve
diff --git a/apps/templates/eve-chat-template/vercel.ts b/apps/templates/eve-chat-template/vercel.ts
new file mode 100644
index 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/.gitignore
index 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
*.tsbuildinfo
pnpm-debug.log*
+
+apps/web/.next
+apps/web/.nuxt
+apps/web/.output
+apps/web/node_modules
diff --git a/apps/templates/eve-llm-council-template/README.md b/apps/templates/eve-llm-council-template/README.md
index 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 scores
The 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 link
pnpm 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.
## Checks
diff --git a/apps/templates/eve-llm-council-template/app/council-app.tsx b/apps/templates/eve-llm-council-template/apps/web/app/council-app.tsx
similarity index 99%
rename from apps/templates/eve-llm-council-template/app/council-app.tsx
rename to apps/templates/eve-llm-council-template/apps/web/app/council-app.tsx
index 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.css
similarity index 100%
rename from apps/templates/eve-llm-council-template/app/globals.css
rename to apps/templates/eve-llm-council-template/apps/web/app/globals.css
diff --git a/apps/templates/eve-llm-council-template/app/layout.tsx b/apps/templates/eve-llm-council-template/apps/web/app/layout.tsx
similarity index 100%
rename from apps/templates/eve-llm-council-template/app/layout.tsx
rename to apps/templates/eve-llm-council-template/apps/web/app/layout.tsx
diff --git a/apps/templates/eve-llm-council-template/app/page.tsx b/apps/templates/eve-llm-council-template/apps/web/app/page.tsx
similarity index 100%
rename from apps/templates/eve-llm-council-template/app/page.tsx
rename to apps/templates/eve-llm-council-template/apps/web/app/page.tsx
diff --git a/apps/templates/eve-llm-council-template/next-env.d.ts b/apps/templates/eve-llm-council-template/apps/web/next-env.d.ts
similarity index 100%
rename from apps/templates/eve-llm-council-template/next-env.d.ts
rename to apps/templates/eve-llm-council-template/apps/web/next-env.d.ts
diff --git a/apps/templates/eve-llm-council-template/next.config.ts b/apps/templates/eve-llm-council-template/apps/web/next.config.ts
similarity index 52%
rename from apps/templates/eve-llm-council-template/next.config.ts
rename to apps/templates/eve-llm-council-template/apps/web/next.config.ts
index 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.png
similarity index 100%
rename from apps/templates/eve-llm-council-template/public/llm-council.png
rename to apps/templates/eve-llm-council-template/apps/web/public/llm-council.png
diff --git a/apps/templates/eve-llm-council-template/tsconfig.json b/apps/templates/eve-llm-council-template/apps/web/tsconfig.json
similarity index 100%
rename from apps/templates/eve-llm-council-template/tsconfig.json
rename to apps/templates/eve-llm-council-template/apps/web/tsconfig.json
diff --git a/apps/templates/eve-llm-council-template/package.json b/apps/templates/eve-llm-council-template/package.json
index 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.yaml
index 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.2
version: 0.6.2([email protected])
ai:
- specifier: ^7.0.105
+ specifier: 7.0.105
version: 7.0.105([email protected])
eve:
- specifier: ^0.54.2
+ specifier: ^0.66.3
geist:
specifier: 1.7.2
@@ -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: true
peerDependencies:
'@opentelemetry/api': ^1.0.0
- ai: ^7.0.93
+ ai: ^7.0.105
braintrust: ^3.0.0
+ chat: ^4.41.0
dd-trace: ^6.13.0
just-bash: ^3.1.0
microsandbox: ^0.5.0
@@ -654,6 +655,8 @@ packages:
optional: true
braintrust:
optional: true
+ chat:
+ optional: true
dd-trace:
optional: true
just-bash:
@@ -1216,7 +1219,7 @@ snapshots:
httpxy: 0.5.5
srvx: 1.0.4
dependencies:
ai: 7.0.105([email protected])
nitro: 3.0.260903-beta
diff --git a/apps/templates/eve-llm-council-template/vercel.ts b/apps/templates/eve-llm-council-template/vercel.ts
new file mode 100644
index 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.json
index 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.yaml
index 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
ai:
specifier: 7.0.105
version: 7.0.105([email protected])
eve:
- specifier: ^0.54.2
+ specifier: ^0.66.3
zod:
specifier: 4.4.3
version: 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: true
peerDependencies:
'@opentelemetry/api': ^1.0.0
- ai: ^7.0.93
+ ai: ^7.0.105
braintrust: ^3.0.0
+ chat: ^4.41.0
dd-trace: ^6.13.0
just-bash: ^3.1.0
microsandbox: ^0.5.0
@@ -360,6 +361,8 @@ packages:
optional: true
braintrust:
optional: true
+ chat:
+ optional: true
dd-trace:
optional: true
just-bash:
@@ -670,12 +673,12 @@ snapshots:
dependencies:
execa: 5.1.1
dependencies:
'@vercel/oidc': 3.8.4
optionalDependencies:
ai: 7.0.105([email protected])
'@vercel/[email protected]': {}
@@ -715,7 +718,7 @@ snapshots:
httpxy: 0.5.5
srvx: 1.0.4
dependencies:
ai: 7.0.105([email protected])
nitro: 3.0.260903-beta
diff --git a/apps/templates/personal-agent-template/.gitignore b/apps/templates/personal-agent-template/.gitignore
index 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_modules
diff --git a/apps/templates/personal-agent-template/AGENTS.md b/apps/templates/personal-agent-template/AGENTS.md
index 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/u
2. **Agent save** — [`agent/tools/save_memory.ts`](agent/tools/save_memory.ts) with web approval UI
3. **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 model
diff --git a/apps/templates/personal-agent-template/CONTRIBUTING.md b/apps/templates/personal-agent-template/CONTRIBUTING.md
index 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.md
index 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 a
Vercel 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 services
pnpm typecheck # TypeScript check
pnpm build # Production build
pnpm db:generate # Generate Drizzle migrations
diff --git a/apps/templates/personal-agent-template/agent/channels/eve.ts b/apps/templates/personal-agent-template/agent/channels/eve.ts
index 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.ts
index 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.ts
index 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.ts
index 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 = `# Identity
diff --git a/apps/templates/personal-agent-template/agent/lib/memory-categories.ts b/apps/templates/personal-agent-template/agent/lib/memory-categories.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/app.config.ts
rename to apps/templates/personal-agent-template/apps/web/app/app.config.ts
diff --git a/apps/templates/personal-agent-template/app/app.vue b/apps/templates/personal-agent-template/apps/web/app/app.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/app.vue
rename to apps/templates/personal-agent-template/apps/web/app/app.vue
diff --git a/apps/templates/personal-agent-template/app/assets/css/main.css b/apps/templates/personal-agent-template/apps/web/app/assets/css/main.css
similarity index 100%
rename from apps/templates/personal-agent-template/app/assets/css/main.css
rename to apps/templates/personal-agent-template/apps/web/app/assets/css/main.css
diff --git a/apps/templates/personal-agent-template/app/components/AgentAuthorizationRequest.vue b/apps/templates/personal-agent-template/apps/web/app/components/AgentAuthorizationRequest.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/AgentAuthorizationRequest.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/AgentAuthorizationRequest.vue
diff --git a/apps/templates/personal-agent-template/app/components/AgentInputRequest.vue b/apps/templates/personal-agent-template/apps/web/app/components/AgentInputRequest.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/AgentInputRequest.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/AgentInputRequest.vue
diff --git a/apps/templates/personal-agent-template/app/components/BrandMark.vue b/apps/templates/personal-agent-template/apps/web/app/components/BrandMark.vue
similarity index 93%
rename from apps/templates/personal-agent-template/app/components/BrandMark.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/BrandMark.vue
index 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.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/Logo.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/Logo.vue
diff --git a/apps/templates/personal-agent-template/app/components/Navbar.vue b/apps/templates/personal-agent-template/apps/web/app/components/Navbar.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/Navbar.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/Navbar.vue
diff --git a/apps/templates/personal-agent-template/app/components/UserMenu.vue b/apps/templates/personal-agent-template/apps/web/app/components/UserMenu.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/UserMenu.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/UserMenu.vue
diff --git a/apps/templates/personal-agent-template/app/components/chat/ActivityIndicator.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/ActivityIndicator.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/chat/ActivityIndicator.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/ActivityIndicator.vue
diff --git a/apps/templates/personal-agent-template/app/components/chat/Comark.ts b/apps/templates/personal-agent-template/apps/web/app/components/chat/Comark.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/chat/Comark.ts
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/Comark.ts
diff --git a/apps/templates/personal-agent-template/app/components/chat/Indicator.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/Indicator.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/chat/Indicator.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/Indicator.vue
diff --git a/apps/templates/personal-agent-template/app/components/chat/SourceLink.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/SourceLink.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/chat/SourceLink.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/SourceLink.vue
diff --git a/apps/templates/personal-agent-template/app/components/chat/StreamInspector.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/StreamInspector.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/chat/StreamInspector.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/StreamInspector.vue
diff --git a/apps/templates/personal-agent-template/app/components/chat/ThreadList.vue b/apps/templates/personal-agent-template/apps/web/app/components/chat/ThreadList.vue
similarity index 98%
rename from apps/templates/personal-agent-template/app/components/chat/ThreadList.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/ThreadList.vue
index 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.vue
similarity index 98%
rename from apps/templates/personal-agent-template/app/components/chat/message/MessageContentEve.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/message/MessageContentEve.vue
index 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.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/chat/tool/Sources.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Sources.vue
diff --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.vue
similarity index 98%
rename from apps/templates/personal-agent-template/app/components/chat/tool/ToolSaveMemory.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/tool/ToolSaveMemory.vue
index 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.vue
similarity index 97%
rename from apps/templates/personal-agent-template/app/components/chat/tool/Weather.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/chat/tool/Weather.vue
index 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.vue
similarity index 98%
rename from apps/templates/personal-agent-template/app/components/integrations/ConnectorCard.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/integrations/ConnectorCard.vue
index 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.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/integrations/SlackLinkCard.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/integrations/SlackLinkCard.vue
diff --git a/apps/templates/personal-agent-template/app/components/profile/ImportMemoryModal.vue b/apps/templates/personal-agent-template/apps/web/app/components/profile/ImportMemoryModal.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/profile/ImportMemoryModal.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/profile/ImportMemoryModal.vue
diff --git a/apps/templates/personal-agent-template/app/components/profile/MemorySection.vue b/apps/templates/personal-agent-template/apps/web/app/components/profile/MemorySection.vue
similarity index 99%
rename from apps/templates/personal-agent-template/app/components/profile/MemorySection.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/profile/MemorySection.vue
index 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.vue
similarity index 99%
rename from apps/templates/personal-agent-template/app/components/profile/PhoneInput.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/profile/PhoneInput.vue
index 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.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/settings/Nav.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/settings/Nav.vue
diff --git a/apps/templates/personal-agent-template/app/components/settings/Row.vue b/apps/templates/personal-agent-template/apps/web/app/components/settings/Row.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/settings/Row.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/settings/Row.vue
diff --git a/apps/templates/personal-agent-template/app/components/settings/Section.vue b/apps/templates/personal-agent-template/apps/web/app/components/settings/Section.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/components/settings/Section.vue
rename to apps/templates/personal-agent-template/apps/web/app/components/settings/Section.vue
diff --git a/apps/templates/personal-agent-template/app/composables/chat/navigation.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/navigation.ts
similarity index 95%
rename from apps/templates/personal-agent-template/app/composables/chat/navigation.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/navigation.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/adapter.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/adapter.ts
diff --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.ts
similarity index 93%
rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/init.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/init.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/session.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/session.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/stream-log.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/stream-log.ts
diff --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.ts
similarity index 94%
rename from apps/templates/personal-agent-template/app/composables/chat/providers/eve/thread-state.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/providers/eve/thread-state.ts
index 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.ts
similarity index 93%
rename from apps/templates/personal-agent-template/app/composables/chat/types.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/types.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/composables/chat/useAuthorizationChallenges.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useAuthorizationChallenges.ts
diff --git a/apps/templates/personal-agent-template/app/composables/chat/useChatSession.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useChatSession.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/composables/chat/useChatSession.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useChatSession.ts
diff --git a/apps/templates/personal-agent-template/app/composables/chat/useThreadGroups.ts b/apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreadGroups.ts
similarity index 97%
rename from apps/templates/personal-agent-template/app/composables/chat/useThreadGroups.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreadGroups.ts
index 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.ts
similarity index 92%
rename from apps/templates/personal-agent-template/app/composables/chat/useThreads.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/chat/useThreads.ts
index 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.ts
similarity index 96%
rename from apps/templates/personal-agent-template/app/composables/useConnector.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/useConnector.ts
index 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.ts
similarity index 96%
rename from apps/templates/personal-agent-template/app/composables/useConnectors.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/useConnectors.ts
index 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.ts
similarity index 91%
rename from apps/templates/personal-agent-template/app/composables/useMemory.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/useMemory.ts
index 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.ts
similarity index 85%
rename from apps/templates/personal-agent-template/app/composables/useProfile.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/useProfile.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/composables/useSite.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/useSite.ts
diff --git a/apps/templates/personal-agent-template/app/composables/useSlackLink.ts b/apps/templates/personal-agent-template/apps/web/app/composables/useSlackLink.ts
similarity index 95%
rename from apps/templates/personal-agent-template/app/composables/useSlackLink.ts
rename to apps/templates/personal-agent-template/apps/web/app/composables/useSlackLink.ts
index 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.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/layouts/default.vue
rename to apps/templates/personal-agent-template/apps/web/app/layouts/default.vue
diff --git a/apps/templates/personal-agent-template/app/lib/auth-client.ts b/apps/templates/personal-agent-template/apps/web/app/lib/auth-client.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/lib/auth-client.ts
rename to apps/templates/personal-agent-template/apps/web/app/lib/auth-client.ts
diff --git a/apps/templates/personal-agent-template/app/middleware/auth.global.ts b/apps/templates/personal-agent-template/apps/web/app/middleware/auth.global.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/middleware/auth.global.ts
rename to apps/templates/personal-agent-template/apps/web/app/middleware/auth.global.ts
diff --git a/apps/templates/personal-agent-template/app/pages/chat/[id].vue b/apps/templates/personal-agent-template/apps/web/app/pages/chat/[id].vue
similarity index 98%
rename from apps/templates/personal-agent-template/app/pages/chat/[id].vue
rename to apps/templates/personal-agent-template/apps/web/app/pages/chat/[id].vue
index 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.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/pages/chat/index.vue
rename to apps/templates/personal-agent-template/apps/web/app/pages/chat/index.vue
diff --git a/apps/templates/personal-agent-template/app/pages/index.vue b/apps/templates/personal-agent-template/apps/web/app/pages/index.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/pages/index.vue
rename to apps/templates/personal-agent-template/apps/web/app/pages/index.vue
diff --git a/apps/templates/personal-agent-template/app/pages/login.vue b/apps/templates/personal-agent-template/apps/web/app/pages/login.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/pages/login.vue
rename to apps/templates/personal-agent-template/apps/web/app/pages/login.vue
diff --git a/apps/templates/personal-agent-template/app/pages/settings/integrations.vue b/apps/templates/personal-agent-template/apps/web/app/pages/settings/integrations.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/pages/settings/integrations.vue
rename to apps/templates/personal-agent-template/apps/web/app/pages/settings/integrations.vue
diff --git a/apps/templates/personal-agent-template/app/pages/settings/profile.vue b/apps/templates/personal-agent-template/apps/web/app/pages/settings/profile.vue
similarity index 100%
rename from apps/templates/personal-agent-template/app/pages/settings/profile.vue
rename to apps/templates/personal-agent-template/apps/web/app/pages/settings/profile.vue
diff --git a/apps/templates/personal-agent-template/app/utils/chat/ai.ts b/apps/templates/personal-agent-template/apps/web/app/utils/chat/ai.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/utils/chat/ai.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/chat/ai.ts
diff --git a/apps/templates/personal-agent-template/app/utils/chat/eve.ts b/apps/templates/personal-agent-template/apps/web/app/utils/chat/eve.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/utils/chat/eve.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/chat/eve.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/utils/chat/save-memory.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/chat/save-memory.ts
diff --git a/apps/templates/personal-agent-template/app/utils/connector.ts b/apps/templates/personal-agent-template/apps/web/app/utils/connector.ts
similarity index 95%
rename from apps/templates/personal-agent-template/app/utils/connector.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/connector.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/utils/payload-cache.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/payload-cache.ts
diff --git a/apps/templates/personal-agent-template/app/utils/tool.ts b/apps/templates/personal-agent-template/apps/web/app/utils/tool.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/utils/tool.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/tool.ts
diff --git a/apps/templates/personal-agent-template/app/utils/url.ts b/apps/templates/personal-agent-template/apps/web/app/utils/url.ts
similarity index 100%
rename from apps/templates/personal-agent-template/app/utils/url.ts
rename to apps/templates/personal-agent-template/apps/web/app/utils/url.ts
diff --git a/apps/templates/personal-agent-template/auth.ts b/apps/templates/personal-agent-template/apps/web/auth.ts
similarity index 100%
rename from apps/templates/personal-agent-template/auth.ts
rename to apps/templates/personal-agent-template/apps/web/auth.ts
diff --git a/apps/templates/personal-agent-template/nuxt.config.ts b/apps/templates/personal-agent-template/apps/web/nuxt.config.ts
similarity index 91%
rename from apps/templates/personal-agent-template/nuxt.config.ts
rename to apps/templates/personal-agent-template/apps/web/nuxt.config.ts
index 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.png
similarity index 100%
rename from apps/templates/personal-agent-template/public/banner.png
rename to apps/templates/personal-agent-template/apps/web/public/banner.png
diff --git a/apps/templates/personal-agent-template/public/favicon.ico b/apps/templates/personal-agent-template/apps/web/public/favicon.ico
similarity index 100%
rename from apps/templates/personal-agent-template/public/favicon.ico
rename to apps/templates/personal-agent-template/apps/web/public/favicon.ico
diff --git a/apps/templates/personal-agent-template/public/og.png b/apps/templates/personal-agent-template/apps/web/public/og.png
similarity index 100%
rename from apps/templates/personal-agent-template/public/og.png
rename to apps/templates/personal-agent-template/apps/web/public/og.png
diff --git a/apps/templates/personal-agent-template/public/robots.txt b/apps/templates/personal-agent-template/apps/web/public/robots.txt
similarity index 100%
rename from apps/templates/personal-agent-template/public/robots.txt
rename to apps/templates/personal-agent-template/apps/web/public/robots.txt
diff --git a/apps/templates/personal-agent-template/server/api/auth/[...all].ts b/apps/templates/personal-agent-template/apps/web/server/api/auth/[...all].ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/auth/[...all].ts
rename to apps/templates/personal-agent-template/apps/web/server/api/auth/[...all].ts
diff --git a/apps/templates/personal-agent-template/server/api/connectors.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/connectors.get.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/connectors.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/connectors.get.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/integrations/[id]/connect.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/connect.post.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/integrations/[id]/revoke.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/revoke.post.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/integrations/[id]/test.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/integrations/[id]/test.post.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/internal/memory.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/internal/memory.get.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/internal/memory.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/internal/memory.post.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/internal/phone/link.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/internal/phone/link.get.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/internal/slack/link/consume.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/internal/slack/link/consume.post.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/internal/slack/link/member.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/internal/slack/link/member.get.ts
diff --git a/apps/templates/personal-agent-template/server/api/memory.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/memory.get.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/memory.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/memory.get.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/memory/[id].delete.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/memory/[id].delete.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/memory/[id].patch.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/memory/[id].patch.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/memory/import.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/memory/import.post.ts
diff --git a/apps/templates/personal-agent-template/server/api/profile.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/profile.get.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/profile.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/profile.get.ts
diff --git a/apps/templates/personal-agent-template/server/api/profile.patch.ts b/apps/templates/personal-agent-template/apps/web/server/api/profile.patch.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/profile.patch.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/profile.patch.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/slack/link.delete.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/slack/link.delete.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/slack/link.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/slack/link.get.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/slack/link/code.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/slack/link/code.post.ts
diff --git a/apps/templates/personal-agent-template/server/api/threads.get.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads.get.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/threads.get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/threads.get.ts
diff --git a/apps/templates/personal-agent-template/server/api/threads.post.ts b/apps/templates/personal-agent-template/apps/web/server/api/threads.post.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/threads.post.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/threads.post.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/threads/[id].delete.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/threads/[id].delete.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/threads/[id].get.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/threads/[id].get.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/api/threads/[id].patch.ts
rename to apps/templates/personal-agent-template/apps/web/server/api/threads/[id].patch.ts
diff --git a/apps/templates/personal-agent-template/server/connectors.ts b/apps/templates/personal-agent-template/apps/web/server/connectors.ts
similarity index 94%
rename from apps/templates/personal-agent-template/server/connectors.ts
rename to apps/templates/personal-agent-template/apps/web/server/connectors.ts
index 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.sql
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/migrations/sqlite/0000_initial.sql
rename to apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/0000_initial.sql
diff --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.json
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/migrations/sqlite/meta/0000_snapshot.json
rename to apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/meta/0000_snapshot.json
diff --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.json
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/migrations/sqlite/meta/_journal.json
rename to apps/templates/personal-agent-template/apps/web/server/db/migrations/sqlite/meta/_journal.json
diff --git a/apps/templates/personal-agent-template/server/db/schema.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema.ts
diff --git a/apps/templates/personal-agent-template/server/db/schema/auth.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/auth.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema/auth.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema/auth.ts
diff --git a/apps/templates/personal-agent-template/server/db/schema/memory.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/memory.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema/memory.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema/memory.ts
diff --git a/apps/templates/personal-agent-template/server/db/schema/phone.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/phone.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema/phone.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema/phone.ts
diff --git a/apps/templates/personal-agent-template/server/db/schema/profile.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/profile.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema/profile.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema/profile.ts
diff --git a/apps/templates/personal-agent-template/server/db/schema/slack.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/slack.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema/slack.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema/slack.ts
diff --git a/apps/templates/personal-agent-template/server/db/schema/threads.ts b/apps/templates/personal-agent-template/apps/web/server/db/schema/threads.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/db/schema/threads.ts
rename to apps/templates/personal-agent-template/apps/web/server/db/schema/threads.ts
diff --git a/apps/templates/personal-agent-template/server/schemas/integrations.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/integrations.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/schemas/integrations.ts
rename to apps/templates/personal-agent-template/apps/web/server/schemas/integrations.ts
diff --git a/apps/templates/personal-agent-template/server/schemas/memory.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/memory.ts
similarity index 88%
rename from apps/templates/personal-agent-template/server/schemas/memory.ts
rename to apps/templates/personal-agent-template/apps/web/server/schemas/memory.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/schemas/phone.ts
rename to apps/templates/personal-agent-template/apps/web/server/schemas/phone.ts
diff --git a/apps/templates/personal-agent-template/server/schemas/profile.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/profile.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/schemas/profile.ts
rename to apps/templates/personal-agent-template/apps/web/server/schemas/profile.ts
diff --git a/apps/templates/personal-agent-template/server/schemas/slack.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/slack.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/schemas/slack.ts
rename to apps/templates/personal-agent-template/apps/web/server/schemas/slack.ts
diff --git a/apps/templates/personal-agent-template/server/schemas/threads.ts b/apps/templates/personal-agent-template/apps/web/server/schemas/threads.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/schemas/threads.ts
rename to apps/templates/personal-agent-template/apps/web/server/schemas/threads.ts
diff --git a/apps/templates/personal-agent-template/server/utils/auth.ts b/apps/templates/personal-agent-template/apps/web/server/utils/auth.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/auth.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/auth.ts
diff --git a/apps/templates/personal-agent-template/server/utils/connect.ts b/apps/templates/personal-agent-template/apps/web/server/utils/connect.ts
similarity index 97%
rename from apps/templates/personal-agent-template/server/utils/connect.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/connect.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/errors.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/errors.ts
diff --git a/apps/templates/personal-agent-template/server/utils/h3-node.ts b/apps/templates/personal-agent-template/apps/web/server/utils/h3-node.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/h3-node.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/h3-node.ts
diff --git a/apps/templates/personal-agent-template/server/utils/internal-api.ts b/apps/templates/personal-agent-template/apps/web/server/utils/internal-api.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/internal-api.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/internal-api.ts
diff --git a/apps/templates/personal-agent-template/server/utils/linear-mcp.ts b/apps/templates/personal-agent-template/apps/web/server/utils/linear-mcp.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/linear-mcp.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/linear-mcp.ts
diff --git a/apps/templates/personal-agent-template/server/utils/memory-import.ts b/apps/templates/personal-agent-template/apps/web/server/utils/memory-import.ts
similarity index 98%
rename from apps/templates/personal-agent-template/server/utils/memory-import.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/memory-import.ts
index 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.ts
similarity index 99%
rename from apps/templates/personal-agent-template/server/utils/memory.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/memory.ts
index 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.ts
similarity index 96%
rename from apps/templates/personal-agent-template/server/utils/phone-links.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/phone-links.ts
index 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.ts
similarity index 98%
rename from apps/templates/personal-agent-template/server/utils/profile.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/profile.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/session.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/session.ts
diff --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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/server/utils/slack-link-codes.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/slack-link-codes.ts
diff --git a/apps/templates/personal-agent-template/server/utils/slack-links.ts b/apps/templates/personal-agent-template/apps/web/server/utils/slack-links.ts
similarity index 96%
rename from apps/templates/personal-agent-template/server/utils/slack-links.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/slack-links.ts
index 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.ts
similarity index 97%
rename from apps/templates/personal-agent-template/server/utils/threads.ts
rename to apps/templates/personal-agent-template/apps/web/server/utils/threads.ts
index 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.json
similarity index 100%
rename from apps/templates/personal-agent-template/tsconfig.json
rename to apps/templates/personal-agent-template/apps/web/tsconfig.json
diff --git a/apps/templates/personal-agent-template/docs/ARCHITECTURE.md b/apps/templates/personal-agent-template/docs/ARCHITECTURE.md
index 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 TB
skills[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 chat
1. 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 docs
diff --git a/apps/templates/personal-agent-template/docs/CUSTOMIZATION.md b/apps/templates/personal-agent-template/docs/CUSTOMIZATION.md
index 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):
```typescript
export 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 types
Each 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 pa
1. 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/f
vercel 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 connect
4. 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 fork
See [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 database
diff --git a/apps/templates/personal-agent-template/docs/ENVIRONMENT.md b/apps/templates/personal-agent-template/docs/ENVIRONMENT.md
index 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 de
Integrations 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 app
See [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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/agent.ts
rename to apps/templates/personal-agent-template/lib/agent.ts
diff --git a/apps/templates/personal-agent-template/shared/connect.ts b/apps/templates/personal-agent-template/lib/connect.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/connect.ts
rename to apps/templates/personal-agent-template/lib/connect.ts
diff --git a/apps/templates/personal-agent-template/shared/memory/export-prompt.ts b/apps/templates/personal-agent-template/lib/memory/export-prompt.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/memory/export-prompt.ts
rename to apps/templates/personal-agent-template/lib/memory/export-prompt.ts
diff --git a/apps/templates/personal-agent-template/shared/phone-codes.ts b/apps/templates/personal-agent-template/lib/phone-codes.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/phone-codes.ts
rename to apps/templates/personal-agent-template/lib/phone-codes.ts
diff --git a/apps/templates/personal-agent-template/shared/slack-auth.ts b/apps/templates/personal-agent-template/lib/slack-auth.ts
similarity index 88%
rename from apps/templates/personal-agent-template/shared/slack-auth.ts
rename to apps/templates/personal-agent-template/lib/slack-auth.ts
index 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.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/timezones.ts
rename to apps/templates/personal-agent-template/lib/timezones.ts
diff --git a/apps/templates/personal-agent-template/shared/tools/weather.ts b/apps/templates/personal-agent-template/lib/tools/weather.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/tools/weather.ts
rename to apps/templates/personal-agent-template/lib/tools/weather.ts
diff --git a/apps/templates/personal-agent-template/shared/types/connector.ts b/apps/templates/personal-agent-template/lib/types/connector.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/types/connector.ts
rename to apps/templates/personal-agent-template/lib/types/connector.ts
diff --git a/apps/templates/personal-agent-template/shared/types/memory.ts b/apps/templates/personal-agent-template/lib/types/memory.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/types/memory.ts
rename to apps/templates/personal-agent-template/lib/types/memory.ts
diff --git a/apps/templates/personal-agent-template/shared/types/phone-link.ts b/apps/templates/personal-agent-template/lib/types/phone-link.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/types/phone-link.ts
rename to apps/templates/personal-agent-template/lib/types/phone-link.ts
diff --git a/apps/templates/personal-agent-template/shared/types/profile.ts b/apps/templates/personal-agent-template/lib/types/profile.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/types/profile.ts
rename to apps/templates/personal-agent-template/lib/types/profile.ts
diff --git a/apps/templates/personal-agent-template/shared/types/slack-link.ts b/apps/templates/personal-agent-template/lib/types/slack-link.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/types/slack-link.ts
rename to apps/templates/personal-agent-template/lib/types/slack-link.ts
diff --git a/apps/templates/personal-agent-template/shared/types/thread.ts b/apps/templates/personal-agent-template/lib/types/thread.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/types/thread.ts
rename to apps/templates/personal-agent-template/lib/types/thread.ts
diff --git a/apps/templates/personal-agent-template/shared/utils/status.ts b/apps/templates/personal-agent-template/lib/utils/status.ts
similarity index 100%
rename from apps/templates/personal-agent-template/shared/utils/status.ts
rename to apps/templates/personal-agent-template/lib/utils/status.ts
diff --git a/apps/templates/personal-agent-template/shared/utils/tools/weather.ts b/apps/templates/personal-agent-template/lib/utils/tools/weather.ts
similarity index 68%
rename from apps/templates/personal-agent-template/shared/utils/tools/weather.ts
rename to apps/templates/personal-agent-template/lib/utils/tools/weather.ts
index 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.json
index 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.yaml
index 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:
'@github-tools/sdk':
specifier: ^1.11.1
'@libsql/client':
specifier: ^0.17.4
version: 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
ai:
- specifier: ^7.0.105
+ specifier: 7.0.105
version: 7.0.105([email protected])
better-auth:
specifier: ^1.7.1
@@ -51,8 +51,8 @@ importers:
specifier: ^0.45.2
eve:
- specifier: ^0.54.2
+ specifier: ^0.66.3
maska:
specifier: ^3.2.0
version: 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: true
peerDependencies:
'@opentelemetry/api': ^1.0.0
- ai: ^7.0.93
+ ai: ^7.0.105
braintrust: ^3.0.0
+ chat: ^4.41.0
dd-trace: ^6.13.0
just-bash: ^3.1.0
microsandbox: ^0.5.0
@@ -3955,6 +3956,8 @@ packages:
optional: true
braintrust:
optional: true
+ chat:
+ optional: true
dd-trace:
optional: true
just-bash:
@@ -7229,14 +7232,14 @@ snapshots:
- '@vue/composition-api'
- vue
dependencies:
ai: 7.0.105([email protected])
octokit: 5.0.5
zod: 4.4.3
optionalDependencies:
'@iconify-json/[email protected]':
dependencies:
@@ -9255,13 +9258,13 @@ snapshots:
dependencies:
execa: 5.1.1
dependencies:
'@vercel/oidc': 3.8.4
optionalDependencies:
ai: 7.0.105([email protected])
dependencies:
@@ -10290,12 +10293,13 @@ snapshots:
dependencies:
ai: 7.0.105([email protected])
nitro: 3.0.260903-beta
undici: 8.9.0
optionalDependencies:
microsandbox: 0.6.12
diff --git a/apps/templates/personal-agent-template/pnpm-workspace.yaml b/apps/templates/personal-agent-template/pnpm-workspace.yaml
index 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
- eve
diff --git a/apps/templates/personal-agent-template/vercel.json b/apps/templates/personal-agent-template/vercel.json
deleted file mode 100644
index 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.ts
new file mode 100644
index 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" } }],
+});