# Scripts This folder contains utility scripts for the Zero email application. These scripts are designed to help with development, testing, and maintenance tasks that are not part of the main application flow. ## Overview The scripts system in Zero is built using [cmd-ts](https://github.com/Schniz/cmd-ts), a TypeScript library for building type-safe command-line applications. This provides a structured way to create, organize, and run utility scripts with proper command-line argument handling, help text, and more. ## How to Run Scripts Scripts can be run using the `scripts` command from the project root: ```bash # Run a script from the project root pnpm scripts [options] # Example: Run the seed-style script pnpm scripts seed-style ``` This command is defined in the root `package.json` and executes the script runner in the mail app: ```json "scripts": "dotenv -- pnpm run --cwd apps/mail --silent --elide-lines=0 scripts" ``` ## Available Scripts ### seed-style Seeds the writing style matrix for a given connection with sample emails of different styles. This is useful for testing and developing the writing style features of the application. **Usage:** ```bash # Interactive mode (will prompt for options) pnpm scripts seed-style # With command-line options pnpm scripts seed-style seed --connection-id --style