chore: add Cloud Agent development environment config - #1531
Closed
runnabro wants to merge 1 commit into
Closed
Conversation
|
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
Adds a repository-managed Cloud Agent environment config at
.cursor/environment.jsonso Cursor Cloud Agents bootrdmewith a fully prepared development environment.{ "name": "rdme", "install": "npm ci && npm run build" }npm ciinstalls dependencies from the committedpackage-lock.json(deterministic).npm run buildcompiles TypeScript todist/so the production entrypoint (bin/run.js) works immediately.No custom Dockerfile is needed — the default image already provides Node (
>=20.10.0engine requirement is satisfied). Nostart/terminalsare needed becauserdmeis a CLI, not a long-running service. No secrets are required for install, build, test, or offline command runs (tests mock network vianock).Validation
All commands run from a clean checkout on the default VM Node (v22.14.0):
npm ci && npm run buildbin/run.js --versionrdme/10.10.0-next.4 linux-x64 node-v22.14.0bin/run.js openapi validate(fixture)bin/dev.js openapi validate(viatsx)npm test(vitest + coverage)npm ci+npm run buildexit 0, snapshot ready)Notes
npm run lint'soxlintstep loads a TypeScript config (oxlint.config.ts), which requires Node^20.19.0 || >=22.18.0. The Cloud Agent's pinned defaultnodeis v22.14.0, so barenpm run lintfails at that step. Under a CI-matching Node (CI useslts/*; the VM has v22.22.2 / v24.15.0 vianvm),knip,oxlint, andoxfmtall pass clean. This is a Node-version detail, not caused by this config.npm run lint'sschemas:checkstep reports the committedtest/helpers/github-workflow-schema.jsonis outdated vs. the upstream JSON Schema Store (fixed by maintainers withnpm run schemas:write). This is pre-existing repo content drift, unrelated to environment setup.