* Add AGENTS.md with Cursor Cloud specific development instructions - Document known issues: broken ESLint config, dev mode type-only import bug, Grok API 410 error - Include quick reference table for common development commands - Note environment requirements (Bun, GROK_API_KEY) Co-authored-by: Ismail Pelaseyed <homanp@users.noreply.github.com> * Update bun.lock after dependency install Co-authored-by: Ismail Pelaseyed <homanp@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: Ismail Pelaseyed <homanp@users.noreply.github.com>
2.0 KiB
2.0 KiB
AGENTS.md
Cursor Cloud specific instructions
Overview
Grok CLI (@vibe-kit/grok-cli) is a single-package TypeScript CLI tool — no databases, Docker, or background services. See README.md for full documentation and usage.
Quick reference
| Action | Command |
|---|---|
| Install deps | bun install |
| Typecheck | bun run typecheck |
| Build | bun run build |
| Run built CLI | node dist/index.js |
| Headless mode | node dist/index.js --prompt "..." --max-tool-rounds N |
| CLI help | node dist/index.js --help |
Known issues
- ESLint config is broken: The repo has
.eslintrc.js(legacy format) but uses ESLint 9 (^9.31.0) +@typescript-eslintv8, which require flat config (eslint.config.js). Additionally,.eslintrc.jsusesmodule.exports(CJS) butpackage.jsonhas"type": "module"(ESM). Runningbun run lintwill fail. Usebun run typecheckas the primary code quality check (this is also what CI enforces). - Dev mode (
bun run dev/bun run dev:node) fails at runtime:src/utils/model-config.tsimports TypeScript interfaces (UserSettings,ProjectSettings) as value imports fromsettings-manager.ts. These type-only exports are erased at runtime by Bun and tsx, causingSyntaxError: export '...' not found. The fix is to useimport typesyntax, but this is a pre-existing repo issue. Workaround: build first (bun run build), then run the compiled version (node dist/index.js). - Grok API 410 error: The client sends
search_parametersin every API request, but xAI has deprecated "Live search". This causes a 410 error on headless prompts. This is an API compatibility issue in the codebase, not an environment problem.
Environment
- Bun must be installed (not pre-installed on Cloud VMs). The update script handles this.
GROK_API_KEYenvironment variable is required for API calls. Set it as a secret.MORPH_API_KEYis optional (enables Morph Fast Apply editing).