learning_ai_common_plat/packages
saravanakumardb1 031e910607 fix(extraction-service): review fixes — locale mapping, model passthrough, content-type validation
BUG 1: Azure locale derivation produced 'en-EN' (invalid) for 2-letter codes.
  → Added toAzureLocale() with 28-language mapping table (en→en-US, pt→pt-BR, etc.)
  → Exported for testing; falls back to code-CODE for unmapped languages.

BUG 2: model field from request schema was silently dropped after provider refactor.
  → Added optional model field to TranscriptionInput interface.
  → OpenAI provider now uses input.model override (falls back to config.model).
  → Route passes model through to provider.transcribe().

GAP 4: SUPPORTED_AUDIO_TYPES was defined but never validated against.
  → Route now rejects unsupported content-types with a clear error message.
  → Allows application/octet-stream (Azure Blob SAS URLs often return this).

GAP 5: Client JSDoc still said 'via OpenAI Whisper API' — now 'via configured STT provider'.

GAP 8: Azure WAV content-type hardcoded samplerate=16000 — now generic audio/wav.

Tests: 42 transcription tests (was 35), 178 total passing.
  → toAzureLocale: 4 tests (locale mapping, passthrough, fallback, case-insensitive)
  → setSTT: 1 test (singleton override)
  → model passthrough: 2 tests (mock ignores, input accepts)
2026-04-06 11:40:27 -07:00
..
accessibility feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
api-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
auth chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
auth-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
auth-ui chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
backend-config chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
backend-flags chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
backend-telemetry chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
blob chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
blob-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
broadcast-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
celebrations feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
client-encrypt chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
config chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
cosmos chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
create-app chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
dashboard-components chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
dashboard-shell chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
datastore chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
design-tokens chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
diagnostics-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
errors chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
event-store chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
events feat(runtime): add checkpoint artifact id contract 2026-04-04 14:27:26 -07:00
extraction fix(extraction-service): review fixes — locale mapping, model passthrough, content-type validation 2026-04-06 11:40:27 -07:00
fastify-auth chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
fastify-core chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
fastify-sse chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
feature-flag-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
feedback-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
field-encrypt chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
gentle-notifications feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
kill-switch-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
kotlin-platform-sdk feat(native-sdks): add Keychain/SecureStore key derivation to BLFieldEncrypt 2026-03-21 11:10:02 -07:00
llm feat(llm): add vision, streaming, and embedding support 2026-04-06 07:42:30 -07:00
llm-router feat(llm): add Perplexity, Gemini providers and createFallbackChain 2026-04-05 12:50:08 -07:00
logger chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
marketplace-client feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
monitoring chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
offline-queue chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
ollama-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
org-client feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
platform-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
push chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
queue chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
quick-actions feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
react-auth chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
react-native-platform-sdk chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
referral-client feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
secure-storage-web chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
speech chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
storage chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
subscription-client fix(subscription-client): add missing X-Product-Id header to API requests 2026-03-30 00:26:48 -07:00
survey-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
swift-diagnostics feat(swift-diagnostics): implement Phase 2.2 Swift Client SDK 2026-03-03 09:28:11 -08:00
swift-platform-sdk feat(native-sdks): add Keychain/SecureStore key derivation to BLFieldEncrypt 2026-03-21 11:10:02 -07:00
sync chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
telemetry-client chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
testing chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
time-references feat(packages): create 9 NomGap-required platform packages 2026-03-29 22:24:02 -07:00
ui chore(platform): align docker and package outputs 2026-03-29 23:41:08 +00:00
use-keyboard-shortcuts chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
use-theme chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00
webhook-dispatch chore(registry): point packages to gitea.bytelyst.com 2026-03-31 10:53:13 +00:00