Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
17 commits
Select commit Hold shift + click to select a range
c417153
fix: close ApplyGuard production release blockers
yuzuruu29 Jul 22, 2026
1ca70c9
fix(db): make AI quota and budget reservations atomic
yuzuruu29 Jul 22, 2026
1f36db8
fix(ai): fail closed on usage settlement errors
yuzuruu29 Jul 22, 2026
0ef18eb
fix(ci): migrate before deploying Supabase functions
yuzuruu29 Jul 22, 2026
04947b0
test: cover usage ledger concurrency and failure recovery
yuzuruu29 Jul 22, 2026
f423a48
fix(db): make settlement migration executable and recoverable
yuzuruu29 Jul 22, 2026
f84c434
fix(ai): prevent request replay and preserve provider-completed usage
yuzuruu29 Jul 22, 2026
837fd56
test(db): execute quota budget and idempotency integration tests
yuzuruu29 Jul 22, 2026
1ee959d
fix(ci): serialize production deploys and run database validation
yuzuruu29 Jul 22, 2026
5577cb1
fix(db): enforce transition matrix and cap actual cost to reserved am…
yuzuruu29 Jul 22, 2026
0b351ca
fix(ai): bound intake and settings and lock model to Haiku 4.5
yuzuruu29 Jul 22, 2026
836addc
test(db): fix PL/pgSQL loop syntax in integration test suite
yuzuruu29 Jul 22, 2026
fc49b36
fix(ci): trigger workflows on test changes and serialize deploys
yuzuruu29 Jul 22, 2026
b80caa9
chore: pre-reformat backup 2026-08-03
yuzuruu29 Aug 3, 2026
58cd87f
feat(ui): ship dark-first premium redesign
yuzuruu29 Aug 12, 2026
8b4ea40
checkpoint before checking out main
yuzuruu29 Aug 12, 2026
9f6c244
feat(video): marketing ad + Premium showcase films; embed showcase on…
yuzuruu29 Aug 13, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 0 additions & 25 deletions .env.vercel.production

This file was deleted.

25 changes: 0 additions & 25 deletions .env.vercel.production.2

This file was deleted.

74 changes: 63 additions & 11 deletions .github/workflows/supabase.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,65 @@
name: Deploy Edge Functions
name: Deploy Edge Functions & Migrations

on:
push:
branches:
- main
paths:
- 'supabase/functions/**'
- 'supabase/migrations/**'
- 'supabase/tests/**'
- 'supabase/config.toml'
- '.github/workflows/supabase.yml'
pull_request:
branches:
- main
paths:
- 'supabase/functions/**'
- 'supabase/migrations/**'
- 'supabase/tests/**'
- 'supabase/config.toml'
- '.github/workflows/supabase.yml'

jobs:
validate:
name: Test & Build Validation
runs-on: ubuntu-latest
concurrency:
group: pr-validation-${{ github.ref }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
cache: npm

- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm test

- name: Run build
run: npm run build

deploy:
name: Migrate Database & Deploy Edge Functions
needs: validate
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
concurrency:
group: production_deployment_pipeline
cancel-in-progress: false

env:
SUPABASE_ACCESS_TOKEN: ${{ secrets.SUPABASE_ACCESS_TOKEN }}
PROJECT_ID: ${{ secrets.SUPABASE_PROJECT_ID }}
SUPABASE_DB_PASSWORD: ${{ secrets.SUPABASE_DB_PASSWORD }}

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
Expand All @@ -26,18 +69,27 @@ jobs:
- name: Install dependencies
run: npm ci

- name: Run unit tests
run: npm test

- uses: supabase/setup-cli@v1
with:
version: latest

- name: Deploy create-checkout
run: supabase functions deploy create-checkout --project-ref $PROJECT_ID
- name: Link Supabase Project
run: supabase link --project-ref $PROJECT_ID --password $SUPABASE_DB_PASSWORD

- name: Apply Database Migrations
run: supabase db push --password $SUPABASE_DB_PASSWORD

- name: Deploy ai-proxy
run: supabase functions deploy ai-proxy --project-ref $PROJECT_ID

- name: Deploy create-paypal-order
run: supabase functions deploy create-paypal-order --project-ref $PROJECT_ID

- name: Deploy capture-paypal-order
run: supabase functions deploy capture-paypal-order --project-ref $PROJECT_ID

- name: Deploy paymongo-webhook
run: supabase functions deploy paymongo-webhook --project-ref $PROJECT_ID --no-verify-jwt
- name: Deploy paypal-webhook
run: supabase functions deploy paypal-webhook --project-ref $PROJECT_ID --no-verify-jwt

- name: Deploy cancel-subscription
run: supabase functions deploy cancel-subscription --project-ref $PROJECT_ID
- name: Deploy download-message-pack
run: supabase functions deploy download-message-pack --project-ref $PROJECT_ID
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,10 @@ supabase-go.exe
supabase.exe
supabase_cli.zip
supabase/.temp/

# pre-reformat backup
.env
.env.local
.env.*.local

.vercel
Binary file added .preview-hero.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .preview-hero2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added .preview-narrative.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
{
"schemaVersion": 1,
"summary": {
"evidenceMode": "session-limited",
"evidenceBoundary": {
"manifest": {
"schemaVersion": 2,
"sourceFingerprint": "c230073388d2d558",
"adapterVersion": "qoder-task-loop-source-v2",
"platform": "qoder",
"selection": {
"strategy": "all-eligible",
"eligibleCount": 0,
"analyzedCount": 0,
"confidence": "Low"
}
},
"deliveryEvidenceLevels": [],
"sourceGaps": []
},
"semanticFacets": {
"schemaVersion": 1,
"status": "supplementary",
"entries": [
{
"id": "session-insight:source-coverage",
"kind": "redacted-summary",
"episodeRef": null,
"status": "candidate",
"labels": [
"source-coverage",
"Low"
],
"summary": "Analyzed 0 of 0 sessions; 0/5 enabled source roots exist. Use this as the current workspace evidence boundary for final insight cards.",
"evidenceRefs": [],
"modelVersion": "session-insights-v1"
},
{
"id": "session-insight:validation-behavior",
"kind": "redacted-summary",
"episodeRef": null,
"status": "candidate",
"labels": [
"validation-behavior",
"Low"
],
"summary": "No validation command category was observed in the analyzed session sample. Inspect more sessions or add explicit validation guidance before claiming validation-after-edit behavior.",
"evidenceRefs": [],
"modelVersion": "session-insights-v1"
},
{
"id": "session-insight:post-edit-validation",
"kind": "rework-correction",
"episodeRef": null,
"status": "candidate",
"labels": [
"post-edit-validation",
"Low"
],
"summary": "No edit event was observed in the analyzed sample. Inspect more sessions before making claims about edit or validation habits.",
"evidenceRefs": [],
"modelVersion": "session-insights-v1"
},
{
"id": "session-insight:execution-friction",
"kind": "friction-taxonomy",
"episodeRef": null,
"status": "candidate",
"labels": [
"execution-friction",
"Low"
],
"summary": "No strong execution friction signal in the analyzed sample. Keep friction claims narrow unless additional failed commands, rejected actions, or warnings are inspected.",
"evidenceRefs": [],
"modelVersion": "session-insights-v1"
}
]
},
"learningCapture": {
"schemaVersion": 1,
"state": "N/A",
"summary": "N/A — requires two comparable observation windows and an intervention comparison.",
"interventions": []
}
},
"dimensions": [
{
"id": "task-understanding"
},
{
"id": "controlled-execution"
},
{
"id": "change-validation"
},
{
"id": "reliable-delivery"
},
{
"id": "learning-capture"
}
],
"findings": [
{
"id": "agent-instructions-missing"
},
{
"id": "no-frontend-ci-validation"
},
{
"id": "missing-runtime-pin"
},
{
"id": "no-integration-e2e-tests"
},
{
"id": "no-recovery-plan-for-payment-state"
}
]
}
Loading
Loading