Added: Cloud Agent development environment config - #180
Open
rahulsainlll wants to merge 1 commit into
Open
Conversation
Co-authored-by: Rahul Sain <rahulsainlll@users.noreply.github.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
rahulsainlll
marked this pull request as ready for review
August 10, 2026 06:13
|
Bugbot is not enabled for your account, so this pull request was not reviewed. Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs. |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What & why
Adds a committed Cursor Cloud Agent environment so the repo becomes fully usable in Cloud Agents out of the box. Previously a fresh agent booted with nothing configured (no dependencies, no database). This provisions the whole local development experience — install, PostgreSQL, migrations, seed data, and the dev servers.
New files (all under
.cursor/):environment.json— declaresinstall,start, three dev-serverterminals(api,web,dashboard), and exposes ports3000/3001/3002.install.sh— one-time, idempotent setup:corepack+pnpm install --frozen-lockfile, installs PostgreSQL 16, prepares a local.env(generatedENCRYPTION_KEY/AUTH_SECRET, local DB URLs), symlinks per-app.envfor the Next.js apps (they don't read the repo-root.env), runs Drizzle migrations, and seeds two demo capabilities so the gateway + catalog have something to serve.start.sh— per-boot reconciliation: starts PostgreSQL (idempotent), ensures.env/links exist, and applies any new migrations.No application code is changed.
Type of change
Validation
All CI quality gates pass locally on this environment:
pnpm install --frozen-lockfilepnpm format:checkpnpm lintpnpm typecheckpnpm testpnpm buildEnd-to-end product flow verified against the running stack:
GET /health→{"status":"ok","service":"tael-api"}GET /capabilities→ serves the seeded capabilities from PostgreSQLPOST /c/fx-rates(no payment) →HTTP 402 Payment Requiredwith a valid x402 challenge (price,payTo, USDC asset, network) — the core product interaction/capabilitiespage renders the seeded capabilities fetched live from the local API:Tael capabilities page served from the local API + Postgres
Environment build validation: a draft Cloud Agent environment build of this exact config succeeded —
.cursor/install.shran cleanly in the build pipeline (dependencies installed, PostgreSQL started, migrations applied, seed idempotent, exit code 0).Fresh Cloud Agent validation: a brand-new agent booted from that tested build passed all checks —
node v22.14.0/pnpm 11.5.2, dependencies present, 12 tables + both seeded capabilities in Postgres,.env+ per-app symlinks in place, API/health+/capabilities+ the402x402 challenge all correct, andpnpm test7/7 suites passing.Checklist
pnpm lint && pnpm typecheck && pnpm test && pnpm buildpass locally@tael/*package changed)To show artifacts inline, enable in settings.