Commit Graph
9 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 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
Theo Browne c7ae6b9471 Favicons + custom port during dev 2026-02-27 15:21:31 -08:00
Julius Marminge 4fac2d203b Resolve T3CODE_STATE_DIR paths against repo root
- Resolve `T3CODE_STATE_DIR` override/env values with `path.resolve`
- Prevent path breakage when Turbo changes the working directory
2026-02-26 20:25:27 -08:00
Julius Marminge b39c629dcc Validate dev runner port overrides and honor env state dir
- Prefer `T3CODE_STATE_DIR` from env when `--state-dir` is unset or blank
- Throw on invalid `T3CODE_PORT` overrides and always recompute `VITE_WS_URL`
- Add tests for env/state-dir precedence, blank overrides, and invalid ports
2026-02-26 18:40:23 -08:00
Julius Marminge c9a59a26bb Reject flag tokens as values in dev-runner arg parsing
- Treat `--` and `-...` tokens after value flags as missing values
- Add regression test for `--state-dir --continue` to throw the expected error
2026-02-26 18:40:23 -08:00
Julius Marminge 0451b503a3 Isolate dev state and forward server flags in dev runner
- default root dev commands to `T3CODE_STATE_DIR=~/.t3/dev`
- add `--` flag forwarding in `scripts/dev-runner.mjs` for server env flags
- resolve desktop state dir from `T3CODE_STATE_DIR` with new tests for desktop and dev runner
2026-02-26 18:40:23 -08:00
Julius Marminge e63d5b240f effect cli 2026-02-26 13:20:36 -08:00
Julius Marminge 15380f2b5f Add dev runner for deterministic multi-instance port offsets
- Route `dev*` scripts through `scripts/dev-runner.mjs` to compute shared server/web port offsets
- Support `T3CODE_DEV_INSTANCE` (hashed or numeric) and explicit `T3CODE_PORT_OFFSET`
- Document multi-instance usage and allow server `VITE_DEV_SERVER_URL` override
2026-02-12 21:41:42 -08:00