@naylence/runtime 0.3.5-test.7 → 0.3.5-test.900

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3333,38 +3333,37 @@ const ENV_VAR_STORAGE_DB_DIRECTORY = 'FAME_STORAGE_DB_DIRECTORY';
3333
3333
  const ENV_VAR_STORAGE_MASTER_KEY = 'FAME_STORAGE_MASTER_KEY';
3334
3334
  const ENV_VAR_STORAGE_ENCRYPTED = 'FAME_STORAGE_ENCRYPTED';
3335
3335
  const PROFILE_NAME_MEMORY = 'memory';
3336
- const PROFILE_NAME_SQLITE = 'sqlite';
3337
- const PROFILE_NAME_ENCRYPTED_SQLITE = 'encrypted-sqlite';
3336
+ const PROFILE_NAME_INDEXEDDB = 'indexeddb';
3338
3337
  const storageProfileSchema = zod.z
3339
3338
  .object({
3340
3339
  type: zod.z.literal('StorageProfile').default('StorageProfile'),
3341
3340
  profile: zod.z
3342
3341
  .string()
3343
3342
  .optional()
3344
- .describe('Storage profile name (memory | sqlite | encrypted-sqlite)'),
3343
+ .describe('Storage profile name (memory | indexeddb | sqlite | encrypted-sqlite)'),
3345
3344
  })
3346
3345
  .passthrough();
3347
3346
  const MEMORY_PROFILE_CONFIG = {
3348
3347
  type: 'InMemoryStorageProvider',
3349
3348
  };
3350
- const SQLITE_PROFILE_CONFIG = {
3351
- type: 'SQLiteStorageProvider',
3349
+ const INDEXEDDB_PROFILE_CONFIG = {
3350
+ type: 'IndexedDBStorageProvider',
3351
+ };
3352
+ ({
3352
3353
  dbDirectory: factory.Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
3353
3354
  isEncrypted: factory.Expressions.env(ENV_VAR_STORAGE_ENCRYPTED, 'false'),
3354
- masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, ''),
3355
- isCached: true,
3356
- };
3357
- const ENCRYPTED_SQLITE_PROFILE_CONFIG = {
3358
- type: 'SQLiteStorageProvider',
3355
+ masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, '')});
3356
+ ({
3359
3357
  dbDirectory: factory.Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
3360
- isEncrypted: 'true',
3361
- masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY),
3362
- isCached: true,
3358
+ masterKey: factory.Expressions.env(ENV_VAR_STORAGE_MASTER_KEY)});
3359
+ // Base profile map with browser-safe options
3360
+ const BASE_PROFILE_MAP = {
3361
+ [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
3362
+ [PROFILE_NAME_INDEXEDDB]: INDEXEDDB_PROFILE_CONFIG,
3363
3363
  };
3364
+ // Extended profile map - can be augmented by Node.js environment
3364
3365
  const PROFILE_MAP$1 = {
3365
- [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
3366
- [PROFILE_NAME_SQLITE]: SQLITE_PROFILE_CONFIG,
3367
- [PROFILE_NAME_ENCRYPTED_SQLITE]: ENCRYPTED_SQLITE_PROFILE_CONFIG,
3366
+ ...BASE_PROFILE_MAP,
3368
3367
  };
3369
3368
  class StorageProfileFactory extends StorageProviderFactory {
3370
3369
  constructor() {