-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Deploy to production (Automated) #1752
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 18 commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
e572dbb
improved error handling during attachment downloads. (#1751)
MrgSub cb0822f
hotfixes (#1753)
MrgSub 3136e86
fix deployment (#1754)
MrgSub ecb2126
Add auto draft generation (#1645)
ahmetskilinc 6637cb9
fix: prevent browser search from triggering on Ctrl+K (#1757)
ayushsharma74 e4148d3
refactor durable objects (#1764)
MrgSub 929649d
remove unused ZeroDriver code (#1765)
MrgSub 7d9a6e4
Make agent property nullable in ZeroDriver (#1766)
MrgSub bf2c8f3
fix: eval lint err for extra arguments and autofix failing test (#1768)
retrogtx 364e90b
Remove console logs and simplify AI chat prompt (#1769)
MrgSub d040186
Refactor Google mail count implementation and add staleTime to stats …
MrgSub 2e44025
Uncomment and enable automatic draft generation in thread workflow (#…
MrgSub b0177bc
hotfix stuf (#1775)
MrgSub 4c3753e
feat: ability to snooze emails (#1477)
retrogtx 718b303
fix alignment
nizzyabi 6cc6730
fix deployment (#1779)
MrgSub 2ace344
Remove unused code and optimize database connections (#1778)
MrgSub b70b880
Add agent documentation and sync additional folders in production (#1…
MrgSub 4caab6b
Implement Sentry error tracking and onboarding email sequence (#1781)
MrgSub 0602b87
feat: update translations via @LingoDotDev (#1776)
github-actions[bot] File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,108 @@ | ||
| # Agent Configuration for Zero Email | ||
|
|
||
| Zero is an open-source AI email solution built with a modern TypeScript/Next.js stack in a monorepo setup. | ||
|
|
||
| ## Project Structure | ||
|
|
||
| This is a pnpm workspace monorepo with the following structure: | ||
| - `apps/mail/` - Next.js frontend email client | ||
| - `apps/server/` - Backend server | ||
| - `apps/ios-app/` - iOS mobile app | ||
| - `packages/cli/` - CLI tools (`nizzy` command) | ||
| - `packages/db/` - Database schemas and utilities | ||
| - `packages/eslint-config/` - Shared ESLint configuration | ||
| - `packages/tailwind-config/` - Shared Tailwind configuration | ||
| - `packages/tsconfig/` - Shared TypeScript configuration | ||
|
|
||
| ## Frequently Used Commands | ||
|
|
||
| ### Development | ||
| - `pnpm go` - Quick start: starts database and dev servers | ||
| - `pnpm dev` - Start all development servers (uses Turbo) | ||
| - `pnpm docker:db:up` - Start PostgreSQL database in Docker | ||
| - `pnpm docker:db:down` - Stop and remove database container | ||
| - `pnpm docker:db:clean` - Stop and remove database with volumes | ||
|
|
||
| ### Build & Deploy | ||
| - `pnpm build` - Build all packages (uses Turbo) | ||
| - `pnpm build:frontend` - Build only the mail frontend | ||
| - `pnpm deploy:frontend` - Deploy frontend | ||
| - `pnpm deploy:backend` - Deploy backend | ||
|
|
||
| ### Code Quality | ||
| - `pnpm check` - Run format check and lint | ||
| - `pnpm lint` - Run ESLint across all packages | ||
| - `pnpm format` - Format code with Prettier | ||
| - `pnpm check:format` - Check code formatting | ||
|
|
||
| ### Database | ||
| - `pnpm db:push` - Push schema changes to database | ||
| - `pnpm db:generate` - Generate migration files | ||
| - `pnpm db:migrate` - Apply database migrations | ||
| - `pnpm db:studio` - Open Drizzle Studio | ||
|
|
||
| ### Testing & Evaluation | ||
| - `pnpm test:ai` - Run AI tests | ||
| - `pnpm eval` - Run evaluation suite | ||
| - `pnpm eval:dev` - Run evaluation in dev mode | ||
| - `pnpm eval:ci` - Run evaluation in CI mode | ||
|
|
||
| ### Utilities | ||
| - `pnpm nizzy env` - Setup environment variables | ||
| - `pnpm nizzy sync` - Sync environment variables and types | ||
| - `pnpm scripts` - Run custom scripts | ||
|
|
||
| ## Tech Stack | ||
|
|
||
| - **Frontend**: Next.js, React 19, TypeScript, TailwindCSS, Shadcn UI | ||
| - **Backend**: Node.js, tRPC, Drizzle ORM | ||
| - **Database**: PostgreSQL | ||
| - **Authentication**: Better Auth, Google OAuth | ||
| - **Package Manager**: pnpm (v10+) | ||
| - **Build Tool**: Turbo | ||
| - **Linting**: ESLint, Oxlint, Prettier | ||
|
|
||
| ## Code Style & Conventions | ||
|
|
||
| ### Formatting | ||
| - 2-space indentation | ||
| - Single quotes | ||
| - 100 character line width | ||
| - Semicolons required | ||
| - Uses Prettier with sort-imports and Tailwind plugins | ||
|
|
||
| ### File Organization | ||
| - TypeScript strict mode enabled | ||
| - Workspace packages use catalog versioning for shared dependencies | ||
| - Monorepo managed with pnpm workspaces | ||
|
|
||
| ### Important Environment Variables | ||
| - `BETTER_AUTH_SECRET` - Auth secret key | ||
| - `GOOGLE_CLIENT_ID` & `GOOGLE_CLIENT_SECRET` - Gmail integration | ||
| - `AUTUMN_SECRET_KEY` - Encryption service | ||
| - `TWILIO_*` - SMS integration | ||
| - `DATABASE_URL` - PostgreSQL connection string | ||
|
|
||
| ## Development Setup | ||
|
|
||
| 1. Install dependencies: `pnpm install` | ||
| 2. Setup environment: `pnpm nizzy env` | ||
| 3. Sync environment: `pnpm nizzy sync` | ||
| 4. Start database: `pnpm docker:db:up` | ||
| 5. Initialize database: `pnpm db:push` | ||
| 6. Start development: `pnpm dev` | ||
|
|
||
| ## Common Workflow | ||
|
|
||
| 1. Always run `pnpm check` before committing | ||
| 2. Use `pnpm nizzy sync` after environment variable changes | ||
| 3. Run `pnpm db:push` after schema changes | ||
| 4. Use `pnpm go` for quick development startup | ||
|
|
||
| ## Notes | ||
|
|
||
| - Uses Husky for git hooks | ||
| - Integrates with Sentry for error tracking | ||
| - Uses Cloudflare Workers for backend deployment | ||
| - iOS app is part of the monorepo | ||
| - CLI tool `nizzy` helps manage environment and sync operations |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.