@effect-agent/storage-sqlite 0.1.0-beta.35 → 0.1.0-beta.36
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.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
- package/src/sqlite-ledger.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/storage-sqlite",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.36",
|
|
4
4
|
"exports": {
|
|
5
5
|
".": {
|
|
6
6
|
"types": "./dist/index.d.mts",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
|
-
"@effect-agent/session": "0.1.0-beta.
|
|
11
|
+
"@effect-agent/session": "0.1.0-beta.36",
|
|
12
12
|
"@effect/platform-node": "4.0.0-rc.111",
|
|
13
13
|
"@effect/sql-sqlite-node": "4.0.0-rc.111",
|
|
14
14
|
"effect": "4.0.0-rc.111"
|
package/src/sqlite-ledger.ts
CHANGED
|
@@ -1146,14 +1146,15 @@ const makeServices = Effect.fn("SqliteSubmissionLedger.makeServices")(function*
|
|
|
1146
1146
|
if (heads.length === 0) return Option.none<Claim>();
|
|
1147
1147
|
const head = heads[0];
|
|
1148
1148
|
|
|
1149
|
-
//
|
|
1150
|
-
//
|
|
1151
|
-
//
|
|
1149
|
+
// Unknown work is claimable only for a durably requested abort: the coordinator
|
|
1150
|
+
// cleans up children and settles without replaying ordinary Tools. Read the intent
|
|
1151
|
+
// in this claim transaction; retain uncertainty evidence and all ownership fencing.
|
|
1152
1152
|
if (
|
|
1153
1153
|
head.state === "joining" ||
|
|
1154
1154
|
head.state === "joined" ||
|
|
1155
1155
|
head.state === "suspended" ||
|
|
1156
|
-
head.state === "unknown"
|
|
1156
|
+
(head.state === "unknown" &&
|
|
1157
|
+
Option.isNone(yield* readAbortIntent(operation, head.submission_id)))
|
|
1157
1158
|
) {
|
|
1158
1159
|
return Option.none<Claim>();
|
|
1159
1160
|
}
|