sandbox-agent/foundry
Nathan Flurry 99c5b3eb5d Fix Foundry auth: migrate to Better Auth adapter, fix access token retrieval
- Remove @ts-nocheck from better-auth.ts, auth-user/index.ts, app-shell.ts
  and fix all type errors
- Fix getAccessTokenForSession: read GitHub token directly from account
  record instead of calling Better Auth's internal /get-access-token
  endpoint which returns 403 on server-side calls
- Re-implement workspaceAuth helper functions (workspaceAuthColumn,
  normalizeAuthValue, workspaceAuthClause, workspaceAuthWhere) that were
  accidentally deleted
- Remove all retry logic (withRetries, isRetryableAppActorError)
- Implement CORS origin allowlist from configured environment
- Document cachedAppWorkspace singleton pattern
- Add inline org sync fallback in buildAppSnapshot for post-OAuth flow
- Add no-retry rule to CLAUDE.md

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-13 14:27:56 -07:00
..
docker Refactor Foundry GitHub state and sandbox runtime (#247) 2026-03-13 02:45:07 -07:00
e2e Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
memory Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
packages Fix Foundry auth: migrate to Better Auth adapter, fix access token retrieval 2026-03-13 14:27:56 -07:00
research Refactor Foundry GitHub state and sandbox runtime (#247) 2026-03-13 02:45:07 -07:00
scripts Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
AGENTS.md Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
CLAUDE.md Fix Foundry auth: migrate to Better Auth adapter, fix access token retrieval 2026-03-13 14:27:56 -07:00
compose.dev.yaml Fix Foundry auth: migrate to Better Auth adapter, fix access token retrieval 2026-03-13 14:27:56 -07:00
compose.preview.yaml Use vanilla Rivet routing in Foundry backend 2026-03-12 18:48:11 -07:00
CONTRIBUTING.md Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
foundry-cloud.md Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
railway.toml Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
README.md Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00
tsconfig.base.json Rename Foundry handoffs to tasks (#239) 2026-03-11 13:23:54 -07:00

Foundry

TypeScript workspace task system powered by RivetKit actors, SQLite/Drizzle state, and OpenTUI.

Documentation: see ../docs/ in the repository root

Quick Install

curl -fsSL https://bun.sh/install | bash
pnpm install
pnpm -w build

Project Goals

  • Simple: There's one screen. It has everything you need. You can use it blindfolded.
  • Fast: No waiting around.
  • Collaborative: Built for fast moving teams that need code reviewed & shipped fast.
  • Pluggable: Works for small side projects to enterprise teams.

License

MIT