Skip to content

Development environment setup#6

Open
DealPatrol wants to merge 9 commits into
mainfrom
cursor/development-environment-setup-9827
Open

Development environment setup#6
DealPatrol wants to merge 9 commits into
mainfrom
cursor/development-environment-setup-9827

Conversation

@DealPatrol
Copy link
Copy Markdown
Owner

Set up the TaskFlow development environment and integrate the new env-agent-finder CLI tool.

The TaskFlow app's local development environment required several fixes, including creating a local stub for @stack-auth/nextjs, adapting lib/db.ts to work with local PostgreSQL, and resolving build issues related to neon() API changes and db vs sql exports. The env-agent-finder CLI tool was created as a standalone utility to scan codebases for environment variables, API endpoints, and service dependencies, and is included in this project while also being published to a separate GitHub repository.


Open in Web Open in Cursor 

cursoragent and others added 3 commits February 28, 2026 20:49
- Add @neondatabase/serverless to package.json (was imported but missing)
- Add @stack-auth/nextjs local stub for auth mock in local dev
- Add pg Pool-based 'db' export to lib/db.ts (used by API routes)
- Make 'sql' export use pg Pool for local PostgreSQL compatibility

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
- Add @stack-auth/nextjs stub module with server/client exports
- Add ESLint flat config (eslint.config.mjs) with basic rules
- Add AGENTS.md with Cursor Cloud specific instructions
- Add next-env.d.ts (auto-generated by Next.js)
- Update tsconfig.json (auto-updated by Next.js)

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
Standalone CLI tool that scans codebases for env vars, API routes,
and service dependencies. Also published as its own repo at:
https://github.com/DealPatrol/env-agent-finder

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
@cursor
Copy link
Copy Markdown

cursor Bot commented Mar 1, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@vercel
Copy link
Copy Markdown
Contributor

vercel Bot commented Mar 1, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
repo-app-architect Ready Ready Preview, Comment Apr 22, 2026 1:22am
v0-dog-toy-store Ready Ready Preview, Comment, Open in v0 Apr 22, 2026 1:22am
v0-repo-app-architect Ready Ready Preview, Comment, Open in v0 Apr 22, 2026 1:22am

Request Review

- Scanner now captures actual values from .env files
- Also reads live process.env values at scan time
- --show-values shows masked values (first 4 + last 4 chars visible)
- --unmask reveals full raw values
- Values section and source file shown in all formats (terminal, json, md)
- Default mode unchanged (summary table, no values)

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
New provisioner module that:
- Scans project to discover all needed env vars from code + dependencies
- Auto-generates secrets (NEXTAUTH_SECRET, JWT_SECRET, etc.)
- Auto-generates local database URLs (PostgreSQL, MySQL, MongoDB, Redis)
- Auto-generates app URLs for local dev
- Preserves existing .env values (never overwrites)
- Interactive mode (--setup): walks through each service with
  step-by-step signup instructions and prompts for API keys
- Non-interactive mode (--auto): auto-generates only, skips prompts
- Writes final grouped .env.local with service-labeled sections
- Supports 17+ services with signup guides (Stripe, OpenAI, etc.)

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
- Node.js http server (zero deps) on port 4800
- Single-page dark-themed app (app.html)
- Scan any project by entering its path
- Visual display of env vars, services, API routes
- Auto-fill secrets button generates values in-browser
- Download .env.local or save directly to project
- New 'npm start' / 'npm run app' script to launch

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
- public/index.html: client-side scanner with file upload + GitHub URL modes
- vercel.json: static site deploy config
- Works entirely in browser, no server needed

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
- --grab mode: opens real browser for each service, navigates to
  API keys page, extracts values or guides user through getting them
- Grabbers for: Stripe, OpenAI, Anthropic, Supabase, Vercel, Clerk
- License key system: --generate-key, --activate, --deactivate, --license
- Grab mode is Pro-only (requires license), scan/setup remain free
- Puppeteer as optional dependency (only needed for --grab)

Co-authored-by: DealPatrol <DealPatrol@users.noreply.github.com>
@DealPatrol
Copy link
Copy Markdown
Owner Author

@copilot resolve the merge conflicts in this pull request

Co-authored-by: DealPatrol <118781133+DealPatrol@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 22, 2026

@copilot resolve the merge conflicts in this pull request

Resolved and pushed in commit ea715a2 (merge commit). I merged origin/main, resolved all conflicts in eslint.config.mjs, lib/db.ts, package.json, and pnpm-lock.yaml, and the PR branch is now mergeable.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • fonts.googleapis.com
    • Triggering command: /usr/local/bin/node node /home/REDACTED/work/repo-app-architect/repo-app-architect/node_modules/.bin/next build (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants