@effect-agent/storage-cloudflare 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/do-ledger.ts +5 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@effect-agent/storage-cloudflare",
|
|
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-browser": "4.0.0-rc.111",
|
|
13
13
|
"@effect/sql-sqlite-do": "4.0.0-rc.111",
|
|
14
14
|
"effect": "4.0.0-rc.111"
|
package/src/do-ledger.ts
CHANGED
|
@@ -1210,14 +1210,15 @@ const makeServices = Effect.fn("DoSubmissionLedger.makeServices")(function* () {
|
|
|
1210
1210
|
if (heads.length === 0) return Option.none<Claim>();
|
|
1211
1211
|
const head = heads[0];
|
|
1212
1212
|
|
|
1213
|
-
//
|
|
1214
|
-
//
|
|
1215
|
-
//
|
|
1213
|
+
// Unknown work is claimable only for a durably requested abort: the coordinator
|
|
1214
|
+
// cleans up children and settles without replaying ordinary Tools. Read the intent
|
|
1215
|
+
// in this claim transaction; retain uncertainty evidence and all ownership fencing.
|
|
1216
1216
|
if (
|
|
1217
1217
|
head.state === "joining" ||
|
|
1218
1218
|
head.state === "joined" ||
|
|
1219
1219
|
head.state === "suspended" ||
|
|
1220
|
-
head.state === "unknown"
|
|
1220
|
+
(head.state === "unknown" &&
|
|
1221
|
+
Option.isNone(yield* readAbortIntent(operation, head.submission_id)))
|
|
1221
1222
|
) {
|
|
1222
1223
|
return Option.none<Claim>();
|
|
1223
1224
|
}
|