Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .cursor/environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"name": "patn-dev-stack",
"install": "bash .cursor/install.sh",
"terminals": [
{
"name": "dev",
"command": "npm run dev"
}
]
}
23 changes: 23 additions & 0 deletions .cursor/install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/usr/bin/env bash
# Idempotent Cloud Agent bootstrap for the patn-dev-stack (Epic Stack) app.
# Safe to run repeatedly: dependencies, database, and the Prisma client are
# all reconciled from the checked-out source and committed migrations/seed.
set -euo pipefail

cd "$(dirname "$0")/.."

# The app runs fully mocked in development; the example env has working values.
if [ ! -f .env ]; then
cp .env.example .env
fi

# Reproducible dependency install from the committed lockfile.
npm ci

# Recreate the SQLite dev database from migrations and reseed it. `reset
# --force` is idempotent and reruns the seed, giving every agent the same
# admin user, about-me, skills, and project fixtures.
npx prisma migrate reset --force --skip-generate

# Generate the Prisma client, including the typed raw-SQL queries.
npx prisma generate --sql
Loading