Commit Graph
5 Commits
Author SHA1 Message Date
Theo Browne 6947b4d47d bring back electron 2026-02-09 20:55:12 -08:00
Cursor AgentandTheo Browne 1990db7430 feat: make t3 package publishable for npx
- Remove private:true so package can be published to npm
- Add files field to limit published files to dist/
- Move @acme/contracts to devDependencies (bundled by tsup)
- Add @acme/renderer devDependency for turbo build ordering
- Add bundle-client.mjs: copies renderer build into dist/client/
- Update resolveStaticDir to check dist/client/ first (npx scenario),
  then fall back to monorepo layout (../../renderer/dist)
- Full build pipeline: contracts → renderer → server + bundle client

Co-authored-by: Theo Browne <[email protected]>
2026-02-09 22:27:47 +00:00
Cursor AgentandTheo Browne 84e3659464 fix: use tsx command directly in server dev script
Use 'tsx src/index.ts' instead of 'node --import tsx' for simpler dev execution

Co-authored-by: Theo Browne <[email protected]>
2026-02-09 22:09:29 +00:00
Cursor AgentandTheo Browne 9b9f587e65 feat: monorepo & CLI integration
- Root package.json: Add dev, dev:server, dev:web, start scripts
  - dev runs both server and renderer in parallel via turbo
  - VITE_WS_URL injected so renderer connects to server in dev mode
- turbo.json: Add WS env vars to globalEnv
- vite.config.ts: Inject VITE_WS_URL at build time for WS server discovery
- wsTransport.ts: Use VITE_WS_URL env var in dev, fall back to page URL in prod
- Server dev script: Uses tsx for direct TypeScript execution with VITE_DEV_SERVER_URL

Co-authored-by: Theo Browne <[email protected]>
2026-02-09 21:50:58 +00:00
Cursor AgentandTheo Browne b674d43f54 feat: scaffold apps/server package and WebSocket protocol types
- Create apps/server with package.json, tsconfig, tsup config
- Copy codexAppServerManager, providerManager, fixPath from desktop (no Electron deps)
- Add WebSocket message protocol schemas (WsRequest, WsResponse, WsPush) to @acme/contracts
- Define WS_METHODS and WS_CHANNELS constants for type-safe routing

Co-authored-by: Theo Browne <[email protected]>
2026-02-09 21:42:18 +00:00