This fixes critical bugs that completely blocked GCS native storage from working: 1. Type validation rejected 'gcs-native' as invalid storage type 2. TypeScript type definition didn't include 'gcs-native' 3. Auto-detection returned S3-compatible GCS instead of native SDK 4. No validation for type/config mismatches (gcs vs gcs-native) Changes: - Add 'gcs-native' to storage type validation array (src/brainy.ts) - Add GCS_NATIVE enum value to StorageType (src/config/storageAutoConfig.ts) - Add 'gcs-native' to StorageTypeString type union (src/config/storageAutoConfig.ts) - Change auto-detection to use native GCS SDK with ADC instead of S3-compatible (src/config/storageAutoConfig.ts) - Add helpful validation to catch type/config mismatches (src/brainy.ts) Impact: - GCS native storage now works as documented - Cloud Run deployments can use Application Default Credentials - Auto-detection correctly selects native adapter in GCP environments - Clear error messages guide users when they mix up gcs vs gcs-native Fixes production blocker for teams deploying on Google Cloud Platform. |
||
|---|---|---|
| .. | ||
| distributedPresets.ts | ||
| extensibleConfig.ts | ||
| index.ts | ||
| modelAutoConfig.ts | ||
| sharedConfigManager.ts | ||
| storageAutoConfig.ts | ||
| zeroConfig.ts | ||