@effect-agent/storage-sqlite 0.1.0-beta.40 → 0.1.0-beta.41

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.
package/dist/index.d.mts CHANGED
@@ -3,7 +3,7 @@ import { ActivityMutationFailpoint, ActivityMutationFailure, ActivityProcessorSt
3
3
  import { Context, Crypto, Effect, Layer, Schema } from "effect";
4
4
  import { SqliteMigrator } from "@effect/sql-sqlite-node";
5
5
  import * as SqlClientService from "effect/unstable/sql/SqlClient";
6
- import { MemoryMutationFailpoint, MemoryMutationFailure, MemoryReader, MemoryStorageError, MemoryWriter } from "@effect-agent/core";
6
+ import { SqliteMemoryInitializationError, memoryReaderLayer, memoryStoreLayer, memoryStoreLayerWithFailpoints } from "@effect-agent/thread/sql-memory";
7
7
  //#region src/migrations.d.ts
8
8
  declare const CurrentSqliteStorageVersion = 7;
9
9
  //#endregion
@@ -97,15 +97,6 @@ declare const submissionLedgerLayer: Layer.Layer<SubmissionLedger, SqliteStorage
97
97
  */
98
98
  declare const ledgerLayer: (options: SqliteStorageOptions) => Layer.Layer<SubmissionLedger, SqliteStorageInitializationError>;
99
99
  //#endregion
100
- //#region src/sqlite-memory-store.d.ts
101
- type SqliteMemoryInitializationError = MemoryStorageError | MemoryMutationFailure;
102
- /** SQLite memory ports with the mutation failpoint kept injectable for recovery tests. */
103
- declare const memoryStoreLayerWithFailpoints: Layer.Layer<MemoryReader | MemoryWriter, SqliteMemoryInitializationError, SqlClientService.SqlClient | MemoryMutationFailpoint>;
104
- /** SQLite memory reader and writer with the production no-op mutation failpoint. */
105
- declare const memoryStoreLayer: Layer.Layer<MemoryReader | MemoryWriter, SqliteMemoryInitializationError, SqlClientService.SqlClient>;
106
- /** Reads an existing memory schema without writes, transactions, or mutation failpoints. */
107
- declare const memoryReaderLayer: Layer.Layer<MemoryReader, MemoryStorageError, SqlClientService.SqlClient>;
108
- //#endregion
109
100
  //#region src/sqlite-schedule-store.d.ts
110
101
  /** SQLite implementation of the atomic ScheduleStore port. */
111
102
  declare const scheduleStoreLayer: Layer.Layer<ScheduleStore, SqliteStorageInitializationError, SqliteStorageConfig | SqliteStorageFailpoint | SqlClientService.SqlClient>;
@@ -113,5 +104,5 @@ declare const scheduleStoreLayer: Layer.Layer<ScheduleStore, SqliteStorageInitia
113
104
  //#region src/sqlite-subscription-store.d.ts
114
105
  declare const subscriptionStoreLayer: (partition: SourcePartition) => Layer.Layer<SubscriptionStore, SqliteStorageInitializationError | SubscriptionError, SqliteStorageConfig | SqliteStorageFailpoint | SqlClientService.SqlClient>;
115
106
  //#endregion
116
- export { CurrentSqliteStorageVersion, SqliteActivityInitializationError, SqliteAppendConflict, SqliteCheckpointConflict, SqliteFenceRejected, SqliteLedgerError, SqliteMemoryInitializationError, SqliteStorageCompatibilityError, SqliteStorageConfig, SqliteStorageConfigValue, SqliteStorageCorruptionError, SqliteStorageError, SqliteStorageFailpoint, SqliteStorageFailpointError, SqliteStorageFailpointHandler, SqliteStorageFailpointLocation, SqliteStorageInitializationError, SqliteStorageOptions, SqliteWriteContention, activityProcessorStoreLayer, activityProcessorStoreLayerWithFailpoints, layer, ledgerLayer, memoryReaderLayer, memoryStoreLayer, memoryStoreLayerWithFailpoints, observationOffsetAt, scheduleStoreLayer, storageConfigLayer, storageFailpointLayer, submissionLedgerLayer, subscriptionStoreLayer, threadStoreLayer };
107
+ export { CurrentSqliteStorageVersion, SqliteActivityInitializationError, SqliteAppendConflict, SqliteCheckpointConflict, SqliteFenceRejected, SqliteLedgerError, type SqliteMemoryInitializationError, SqliteStorageCompatibilityError, SqliteStorageConfig, SqliteStorageConfigValue, SqliteStorageCorruptionError, SqliteStorageError, SqliteStorageFailpoint, SqliteStorageFailpointError, SqliteStorageFailpointHandler, SqliteStorageFailpointLocation, SqliteStorageInitializationError, SqliteStorageOptions, SqliteWriteContention, activityProcessorStoreLayer, activityProcessorStoreLayerWithFailpoints, layer, ledgerLayer, memoryReaderLayer, memoryStoreLayer, memoryStoreLayerWithFailpoints, observationOffsetAt, scheduleStoreLayer, storageConfigLayer, storageFailpointLayer, submissionLedgerLayer, subscriptionStoreLayer, threadStoreLayer };
117
108
  //# sourceMappingURL=index.d.mts.map