gstack/supabase/migrations
Garry Tan 0e29d7d1a3
feat: add enriched transcript sync — Haiku summaries, session file enrichment
Add session intelligence pipeline for team transcript sync:
- lib/transcript-sync.ts: parse history.jsonl, enrich with Claude session
  file data (tools_used, full turn count), sync marker management,
  10-concurrent push with 5-concurrent Haiku summarization
- lib/llm-summarize.ts: raw fetch() to Anthropic Messages API (no SDK dep),
  retry-after on 429, exponential backoff on 5xx, SHA-based eval-cache
- lib/sync.ts: pushTranscript() and pullTranscripts() following existing patterns
- 006_transcript_sync.sql: unique index on (team_id, session_id) for
  idempotent upsert, RLS changed from admin-only to team-wide read

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-16 00:15:19 -05:00
..
001_teams.sql feat: add Supabase migration SQL for team data store 2026-03-15 02:02:47 -05:00
002_eval_runs.sql feat: add Supabase migration SQL for team data store 2026-03-15 02:02:47 -05:00
003_data_tables.sql feat: add Supabase migration SQL for team data store 2026-03-15 02:02:47 -05:00
004_eval_costs.sql feat: unified gstack eval CLI with list, compare, push, cache, cost 2026-03-15 09:39:36 -05:00
005_sync_heartbeats.sql feat: sync heartbeats, eval:trend --team, setup guide, 10 new tests 2026-03-15 19:43:03 -05:00
006_transcript_sync.sql feat: add enriched transcript sync — Haiku summaries, session file enrichment 2026-03-16 00:15:19 -05:00