brainy/src/config
David Snelling 1e77ecd145 fix: enable GCS native storage with Application Default Credentials
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.
2025-10-09 10:39:54 -07:00
..
distributedPresets.ts feat: implement zero-config system with Node.js 22 compatibility 2025-08-29 15:39:07 -07:00
extensibleConfig.ts feat: implement zero-config system with Node.js 22 compatibility 2025-08-29 15:39:07 -07:00
index.ts feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
modelAutoConfig.ts feat: Brainy 3.0 - Production-ready Triple Intelligence database 2025-09-11 16:23:32 -07:00
sharedConfigManager.ts fix: update hardcoded version references to use dynamic version 2025-09-26 13:41:16 -07:00
storageAutoConfig.ts fix: enable GCS native storage with Application Default Credentials 2025-10-09 10:39:54 -07:00
zeroConfig.ts feat: implement clean embedding architecture with Q8/FP32 precision control 2025-09-02 10:00:52 -07:00