@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.
@@ -4893,38 +4893,37 @@ const ENV_VAR_STORAGE_DB_DIRECTORY = 'FAME_STORAGE_DB_DIRECTORY';
4893
4893
  const ENV_VAR_STORAGE_MASTER_KEY = 'FAME_STORAGE_MASTER_KEY';
4894
4894
  const ENV_VAR_STORAGE_ENCRYPTED = 'FAME_STORAGE_ENCRYPTED';
4895
4895
  const PROFILE_NAME_MEMORY = 'memory';
4896
- const PROFILE_NAME_SQLITE = 'sqlite';
4897
- const PROFILE_NAME_ENCRYPTED_SQLITE = 'encrypted-sqlite';
4896
+ const PROFILE_NAME_INDEXEDDB = 'indexeddb';
4898
4897
  const storageProfileSchema = z
4899
4898
  .object({
4900
4899
  type: z.literal('StorageProfile').default('StorageProfile'),
4901
4900
  profile: z
4902
4901
  .string()
4903
4902
  .optional()
4904
- .describe('Storage profile name (memory | sqlite | encrypted-sqlite)'),
4903
+ .describe('Storage profile name (memory | indexeddb | sqlite | encrypted-sqlite)'),
4905
4904
  })
4906
4905
  .passthrough();
4907
4906
  const MEMORY_PROFILE_CONFIG = {
4908
4907
  type: 'InMemoryStorageProvider',
4909
4908
  };
4910
- const SQLITE_PROFILE_CONFIG = {
4911
- type: 'SQLiteStorageProvider',
4909
+ const INDEXEDDB_PROFILE_CONFIG = {
4910
+ type: 'IndexedDBStorageProvider',
4911
+ };
4912
+ ({
4912
4913
  dbDirectory: Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
4913
4914
  isEncrypted: Expressions.env(ENV_VAR_STORAGE_ENCRYPTED, 'false'),
4914
- masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, ''),
4915
- isCached: true,
4916
- };
4917
- const ENCRYPTED_SQLITE_PROFILE_CONFIG = {
4918
- type: 'SQLiteStorageProvider',
4915
+ masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY, '')});
4916
+ ({
4919
4917
  dbDirectory: Expressions.env(ENV_VAR_STORAGE_DB_DIRECTORY, './data/sqlite'),
4920
- isEncrypted: 'true',
4921
- masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY),
4922
- isCached: true,
4918
+ masterKey: Expressions.env(ENV_VAR_STORAGE_MASTER_KEY)});
4919
+ // Base profile map with browser-safe options
4920
+ const BASE_PROFILE_MAP = {
4921
+ [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
4922
+ [PROFILE_NAME_INDEXEDDB]: INDEXEDDB_PROFILE_CONFIG,
4923
4923
  };
4924
+ // Extended profile map - can be augmented by Node.js environment
4924
4925
  const PROFILE_MAP$1 = {
4925
- [PROFILE_NAME_MEMORY]: MEMORY_PROFILE_CONFIG,
4926
- [PROFILE_NAME_SQLITE]: SQLITE_PROFILE_CONFIG,
4927
- [PROFILE_NAME_ENCRYPTED_SQLITE]: ENCRYPTED_SQLITE_PROFILE_CONFIG,
4926
+ ...BASE_PROFILE_MAP,
4928
4927
  };
4929
4928
  class StorageProfileFactory extends StorageProviderFactory {
4930
4929
  constructor() {