feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes

This commit is contained in:
Yun Chan 2026-11-14 11:51:41 +09:00
parent 01ef3293cf
commit 66b6b45ba9
399 changed files with 17828 additions and 11330 deletions

View file

@ -4,6 +4,7 @@
// 'deleted' audio_files rows). Depends only on ports; index.ts wires Supabase.
import type { StorageBucketPort } from '../_shared/storage-objects.ts'
import { createStatusJsonResponder } from '../_shared/json-response.ts'
import { removeStorageObjects } from '../_shared/storage-objects.ts'
import { planPurge, type PurgeQueueEntry } from './policy.ts'
@ -86,12 +87,7 @@ export async function drainAudioPurgeQueue(deps: AudioPurgeDeps): Promise<AudioP
return summary
}
function json(status: number, body: Record<string, unknown>): Response {
return new Response(JSON.stringify(body), {
status,
headers: { 'Content-Type': 'application/json', 'Cache-Control': 'no-store' },
})
}
const json = createStatusJsonResponder({ cors: false, noStore: true })
export interface AudioPurgeRequestDeps {
/** True only for the service-role caller (pg_cron via pg_net). */