feat: ship Wave 5-6 multi-surface hygiene, optimization, and bug fixes
This commit is contained in:
parent
01ef3293cf
commit
66b6b45ba9
399 changed files with 17828 additions and 11330 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { isRecord, isUuid } from './core-contract.generated.ts'
|
||||
|
||||
export interface GenerateMeetingDocumentRequest {
|
||||
meetingId: string
|
||||
templateId: string
|
||||
|
|
@ -12,7 +14,6 @@ export interface ProviderDocumentResult {
|
|||
outputTokens: number | null
|
||||
}
|
||||
|
||||
const UUID_PATTERN = /^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i
|
||||
const MODELS = new Set<GenerateMeetingDocumentRequest['model']>([
|
||||
'claude-haiku-4-5-20251001',
|
||||
'claude-sonnet-4-6',
|
||||
|
|
@ -35,12 +36,9 @@ export class MeetingDocumentRequestError extends Error {
|
|||
}
|
||||
}
|
||||
|
||||
function isRecord(value: unknown): value is Record<string, unknown> {
|
||||
return typeof value === 'object' && value !== null && !Array.isArray(value)
|
||||
}
|
||||
|
||||
function requireUuid(value: unknown, field: string): string {
|
||||
if (typeof value !== 'string' || !UUID_PATTERN.test(value)) {
|
||||
if (!isUuid(value)) {
|
||||
throw new MeetingDocumentRequestError(`${field} must be a UUID`)
|
||||
}
|
||||
return value.toLowerCase()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue