Are you sure you want to delete this access key?
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
When making API calls from the React app (src/app
), always use the callApi
function from @app/utils/api
instead of direct fetch()
calls. This ensures proper API base URL handling.
import { callApi } from '@app/utils/api';
// Correct
const response = await callApi('/traces/evaluation/123');
// Incorrect - will fail in development
const response = await fetch('/api/traces/evaluation/123');
npm run build
- Build the projectnpm run build:clean
- Clean the dist directorynpm run build:watch
- Watch for changes and rebuild TypeScript filesnpm run lint
- Run Biome linter (alias for lint:src)npm run lint:src
- Run Biome linter on src directorynpm run lint:tests
- Run Biome linter on test directorynpm run lint:site
- Run Biome linter on site directorynpm run format
- Format with Biome (JS/TS) and Prettier (CSS/HTML/Markdown)npm run format:check
- Check formatting without making changesnpm run f
- Format only changed filesnpm run l
- Lint only changed filesnpm test
- Run all testsnpm run test:watch
- Run tests in watch modenpm run test:integration
- Run integration testsnpm run test:redteam:integration
- Run red team integration testsnpx jest path/to/test-file
- Run a specific testnpm run dev
- Start development environment (both server and app)npm run dev:app
- Start only the frontend app in dev modenpm run dev:server
- Start only the server in dev modenpm run tsc
- Run TypeScript compilernpm run db:generate
- Generate database migrations with Drizzlenpm run db:migrate
- Run database migrationsnpm run db:studio
- Open Drizzle studio for database managementnpm run jsonSchema:generate
- Generate JSON schema for configurationnpm run citation:generate
- Generate citation fileWhen the CI style check is failing, run these commands to fix style issues:
Fix all style issues automatically:
# Fix linting issues for changed files
npm run l
# Fix formatting issues for changed files
npm run f
# Or fix all files (not just changed ones)
npm run format
Before committing, always run:
npm run l && npm run f
promptfoo
or pf
- Access the CLI toolWhen testing changes during development, use the local build:
npm run local -- eval -c path/to/config.yaml
This ensures you're testing with your current changes instead of the installed version.
Press p or to see the previous file or, n or to see the next file
Browsing data directories saved to S3 is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with AWS S3!
Are you sure you want to delete this access key?
Browsing data directories saved to Google Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Google Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to Azure Cloud Storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with Azure Cloud Storage!
Are you sure you want to delete this access key?
Browsing data directories saved to S3 compatible storage is possible with DAGsHub. Let's configure your repository to easily display your data in the context of any commit!
promptfoo is now integrated with your S3 compatible storage!
Are you sure you want to delete this access key?