@effect-agent/storage-sqlite 0.1.0-beta.36 → 0.1.0-beta.37
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 +7 -3
- package/dist/index.mjs +367 -100
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -0
- package/src/migrations.ts +31 -1
- package/src/sqlite-conversation-store.ts +2 -3
- package/src/sqlite-journal.ts +13 -27
- package/src/sqlite-ledger.ts +1 -1
- package/src/sqlite-schedule-store.ts +363 -0
package/dist/index.d.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConversationStore, ConversationStoreError, SubmissionLedger } from "@effect-agent/session";
|
|
1
|
+
import { ConversationStore, ConversationStoreError, ScheduleStore, SubmissionLedger } from "@effect-agent/session";
|
|
2
2
|
import { Context, Crypto, Effect, Layer, Schema } from "effect";
|
|
3
3
|
import { SqliteMigrator } from "@effect/sql-sqlite-node";
|
|
4
4
|
import * as SqlClientService from "effect/unstable/sql/SqlClient";
|
|
@@ -84,7 +84,7 @@ declare class SqliteStorageFailpointError extends SqliteStorageFailpointError_ba
|
|
|
84
84
|
}
|
|
85
85
|
//#endregion
|
|
86
86
|
//#region src/migrations.d.ts
|
|
87
|
-
declare const CurrentSqliteStorageVersion =
|
|
87
|
+
declare const CurrentSqliteStorageVersion = 5;
|
|
88
88
|
declare const sqliteMigrations: SqliteMigrator.Loader<never>;
|
|
89
89
|
//#endregion
|
|
90
90
|
//#region src/sqlite-storage-config.d.ts
|
|
@@ -189,5 +189,9 @@ declare const submissionLedgerLayer: Layer.Layer<SubmissionLedger, SqliteStorage
|
|
|
189
189
|
*/
|
|
190
190
|
declare const ledgerLayer: (options: SqliteStorageOptions) => Layer.Layer<SubmissionLedger, SqliteStorageInitializationError>;
|
|
191
191
|
//#endregion
|
|
192
|
-
|
|
192
|
+
//#region src/sqlite-schedule-store.d.ts
|
|
193
|
+
/** SQLite implementation of the atomic ScheduleStore port. */
|
|
194
|
+
declare const scheduleStoreLayer: Layer.Layer<ScheduleStore, SqliteStorageInitializationError, SqliteStorageConfig | SqliteStorageFailpoint | SqlClientService.SqlClient>;
|
|
195
|
+
//#endregion
|
|
196
|
+
export { CurrentSqliteStorageVersion, SqliteAppendConflict, SqliteCheckpointConflict, SqliteFenceRejected, SqliteLedgerError, SqliteStorageCompatibilityError, SqliteStorageConfig, SqliteStorageConfigValue, SqliteStorageCorruptionError, SqliteStorageError, SqliteStorageFailpoint, SqliteStorageFailpointError, SqliteStorageFailpointHandler, SqliteStorageFailpointLocation, SqliteStorageFailpointTestControl, SqliteStorageInitializationError, SqliteStorageOptions, SqliteWriteContention, conversationStoreLayer, layer, ledgerLayer, observationOffsetAt, scheduleStoreLayer, sqliteMigrations, storageConfigLayer, storageFailpointLayer, submissionLedgerLayer };
|
|
193
197
|
//# sourceMappingURL=index.d.mts.map
|