Compare commits

..
Author SHA1 Message Date
Cursor AgentandTheo Browne a478a24002 Revert AGENTS.md and dev-runner.mjs changes
Co-authored-by: Theo Browne <[email protected]>
2026-02-28 07:27:25 +00:00
Cursor AgentandTheo Browne 0a5308042f Update AGENTS.md with Codex auth and turbo env gotchas
Co-authored-by: Theo Browne <[email protected]>
2026-02-28 02:25:05 +00:00
Cursor AgentandTheo Browne dd1ab44137 Include desktop app in default dev mode and pass OPENAI_API_KEY through turbo
- Add --filter=@t3tools/desktop to the dev mode in dev-runner so
  'bun run dev' also spins up the Electron app alongside contracts,
  web, and server.
- Add OPENAI_API_KEY to globalPassThroughEnv in turbo.json so the
  Codex CLI receives the key when spawned by the server process
  (turbo strict env mode strips undeclared vars from child processes).

Co-authored-by: Theo Browne <[email protected]>
2026-02-28 02:16:58 +00:00
Cursor AgentandTheo Browne ae27e0b57f Add Cursor Cloud specific instructions to AGENTS.md
Co-authored-by: Theo Browne <[email protected]>
2026-02-28 00:25:06 +00:00
2 changed files with 1 additions and 28 deletions

No files matched your search

-28
View File
@@ -41,31 +41,3 @@ Docs:
- Codex-Monitor (Tauri, feature-complete, strong reference implementation): https://github.com/Dimillian/CodexMonitor
Use these as implementation references when designing protocol handling, UX flows, and operational safeguards.
## Cursor Cloud specific instructions
### Prerequisites
- **Bun >= 1.3.9** (package manager; see `packageManager` in root `package.json`).
- **Node.js >= 24.13.1** (required for `node:sqlite`; see `engines` in root `package.json`).
- **Codex CLI** on PATH is needed for full E2E agent sessions but is NOT required for dev server startup, lint, typecheck, or tests.
### Key commands
All commands are documented in the root `README.md`. Quick reference:
- `bun install` — install dependencies.
- `bun run lint` — runs `oxlint` (not ESLint).
- `bun run typecheck` — Turbo-orchestrated `tsc --noEmit` across all packages.
- `bun run test` — Turbo-orchestrated Vitest across all packages.
- `bun run dev` — starts contracts watch-build + server (port 3773) + Vite web (port 5733) via Turbo. Pass `T3CODE_NO_BROWSER=1` to suppress auto-opening a browser.
- `bun run build` — production build of all packages.
### Gotchas
- The server uses `node:sqlite` (experimental in Node 24). You will see `ExperimentalWarning: SQLite is an experimental feature` in test/server output — this is expected.
- Dev state is isolated to `~/.t3/dev` by default (set via `T3CODE_STATE_DIR`).
- `bun run dev` spawns `turbo` under the hood via `scripts/dev-runner.mjs`; the runner resolves dev ports (server 3773, web 5733) and environment variables automatically.
- `packages/contracts` must be built before `apps/server` or `apps/web` can start. Turbo handles this dependency, but if running individual packages manually, build contracts first: `bun run build:contracts`.
- Lint uses `oxlint` (config: `.oxlintrc.json`), not ESLint. Formatting uses `oxfmt` (config: `.oxfmtrc.json`).
- **Desktop dev mode** (`bun run dev:desktop`): The desktop Electron app requires `apps/server/dist/index.mjs` to exist (it spawns the server backend itself). Run `bun run build:desktop` first to build both server and desktop bundles, then `bun run dev:desktop`. The `tsdown --watch` (dev:bundle) may clean `dist-electron/` and not immediately rebuild; if `wait-on` hangs, manually run `bun run build` in `apps/desktop/` to unblock.
+1
View File
@@ -13,6 +13,7 @@
"T3CODE_AUTH_TOKEN",
"T3CODE_DESKTOP_WS_URL"
],
"globalPassThroughEnv": ["OPENAI_API_KEY"],
"tasks": {
"build": {
"dependsOn": ["^build"],