gstack/lib
Garry Tan 7808ee380b
fix: resolve team_id during auth and preserve across token refresh
P1 from Codex review: interactive auth saved team_id: '' making all
subsequent sync operations fail. Now resolves team_id from team_members
table immediately after OAuth callback.

Also fixes token refresh in sync.ts to preserve the existing team_id
instead of resetting it to empty, and removes order=created_at.desc
from pullTable() default query since sync_heartbeats and team_members
tables don't have that column (P2).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-19 01:28:15 -07:00
..
auth.ts fix: resolve team_id during auth and preserve across token refresh 2026-03-19 01:28:15 -07:00
cli-eval.ts feat: add CLI leaderboard, refactor formatTeamSummary to use dashboard-queries 2026-03-16 02:44:12 -05:00
cli-projects.ts feat: add gstack projects ls CLI command 2026-03-18 23:50:30 -07:00
cli-sync.ts feat: add CLI leaderboard, refactor formatTeamSummary to use dashboard-queries 2026-03-16 02:44:12 -05:00
cli-team.ts fix: DRY getValidToken — cli-team delegates to sync.ts, remove phantom Joined column 2026-03-16 19:12:44 -07:00
dashboard-queries.ts docs: cross-reference leaderboard duplication, service-role-key warning 2026-03-16 19:12:49 -07:00
eval-cache.ts feat: add SHA-based eval caching with EVAL_CACHE=0 bypass 2026-03-15 09:39:26 -05:00
eval-cost.ts feat: wire costs[] from modelUsage into eval results 2026-03-15 16:47:27 -05:00
eval-format.ts feat: wire costs[] from modelUsage into eval results 2026-03-15 16:47:27 -05:00
eval-tier.ts feat: add eval format validation, tier selection, cost tracking 2026-03-15 09:39:18 -05:00
llm-summarize.ts feat: add enriched transcript sync — Haiku summaries, session file enrichment 2026-03-16 00:15:19 -05:00
sync-config.ts feat: add team sync infrastructure (config, auth, push/pull, CLI) 2026-03-15 02:02:40 -05:00
sync.ts fix: resolve team_id during auth and preserve across token refresh 2026-03-19 01:28:15 -07:00
transcript-sync.ts feat: add enriched transcript sync — Haiku summaries, session file enrichment 2026-03-16 00:15:19 -05:00
upload.ts feat: add gstack-upload helper for Supabase Storage 2026-03-18 23:49:38 -07:00
util.ts refactor: add PROJECTS_DIR to gstack-slug and getProjectsDir() to util.ts 2026-03-18 23:45:27 -07:00