@relayfx/sdk 0.7.15 → 0.7.16
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-29atwn23.js → index-5yz7nfkv.js} +17 -6
- package/dist/{index-z6ynt4v1.js → index-nxm89xyp.js} +1 -1
- package/dist/{index-efepvs7p.js → index-qb715zhq.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/mysql.js +3 -3
- package/dist/postgres.js +3 -3
- package/dist/sqlite.js +2 -2
- package/package.json +2 -2
|
@@ -16409,21 +16409,32 @@ var layer53 = Layer73.effect(Service62, Effect89.gen(function* () {
|
|
|
16409
16409
|
const signal = yield* Deferred2.make();
|
|
16410
16410
|
const done = yield* Deferred2.make();
|
|
16411
16411
|
const entry = { signal, done };
|
|
16412
|
-
yield* Ref17.update(active, (entries) =>
|
|
16412
|
+
yield* Ref17.update(active, (entries) => {
|
|
16413
|
+
const next = new Map(entries);
|
|
16414
|
+
next.set(executionId, new Set(next.get(executionId) ?? []).add(entry));
|
|
16415
|
+
return next;
|
|
16416
|
+
});
|
|
16413
16417
|
const interrupted = Deferred2.await(signal).pipe(Effect89.andThen(() => Effect89.interrupt));
|
|
16414
16418
|
return yield* Effect89.raceFirst(effect, interrupted).pipe(Effect89.ensuring(Ref17.update(active, (entries) => {
|
|
16415
16419
|
const next = new Map(entries);
|
|
16416
|
-
|
|
16420
|
+
const remaining = new Set(next.get(executionId) ?? []);
|
|
16421
|
+
remaining.delete(entry);
|
|
16422
|
+
if (remaining.size === 0)
|
|
16417
16423
|
next.delete(executionId);
|
|
16424
|
+
else
|
|
16425
|
+
next.set(executionId, remaining);
|
|
16418
16426
|
return next;
|
|
16419
16427
|
}).pipe(Effect89.andThen(Deferred2.succeed(done, undefined)))));
|
|
16420
16428
|
}),
|
|
16421
16429
|
interruptAndAwait: Effect89.fn("ActiveExecutionRegistry.interruptAndAwait")(function* (executionId) {
|
|
16422
|
-
const
|
|
16423
|
-
if (
|
|
16430
|
+
const entries = yield* Ref17.get(active).pipe(Effect89.map((current2) => Array.from(current2.get(executionId) ?? [])));
|
|
16431
|
+
if (entries.length === 0)
|
|
16424
16432
|
return false;
|
|
16425
|
-
yield* Deferred2.succeed(entry.signal, undefined);
|
|
16426
|
-
yield* Deferred2.await(entry.done)
|
|
16433
|
+
yield* Effect89.forEach(entries, (entry) => Deferred2.succeed(entry.signal, undefined), { discard: true });
|
|
16434
|
+
yield* Effect89.forEach(entries, (entry) => Deferred2.await(entry.done), {
|
|
16435
|
+
concurrency: "unbounded",
|
|
16436
|
+
discard: true
|
|
16437
|
+
});
|
|
16427
16438
|
return true;
|
|
16428
16439
|
})
|
|
16429
16440
|
});
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
exports_event_history_s3_client,
|
|
10
10
|
exports_execution_event_repository,
|
|
11
11
|
exports_runtime_event_history
|
|
12
|
-
} from "./index-
|
|
12
|
+
} from "./index-5yz7nfkv.js";
|
|
13
13
|
|
|
14
14
|
// src/shared-event-history.ts
|
|
15
15
|
import { layer as bunCryptoLayer } from "@effect/platform-bun/BunCrypto";
|
package/dist/index.js
CHANGED
package/dist/mysql.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
s3EventHistory
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-nxm89xyp.js";
|
|
5
5
|
import"./index-432jshna.js";
|
|
6
6
|
import {
|
|
7
7
|
database,
|
|
8
8
|
normalizeMigrationCause
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-qb715zhq.js";
|
|
10
10
|
import {
|
|
11
11
|
MigratorError,
|
|
12
12
|
RuntimeMigrationError,
|
|
13
13
|
SqlFailure
|
|
14
|
-
} from "./index-
|
|
14
|
+
} from "./index-5yz7nfkv.js";
|
|
15
15
|
import"./index-d5563j6w.js";
|
|
16
16
|
import"./index-j8k41y47.js";
|
|
17
17
|
import"./index-nb39b5ae.js";
|
package/dist/postgres.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
// @bun
|
|
2
2
|
import {
|
|
3
3
|
s3EventHistory
|
|
4
|
-
} from "./index-
|
|
4
|
+
} from "./index-nxm89xyp.js";
|
|
5
5
|
import"./index-432jshna.js";
|
|
6
6
|
import {
|
|
7
7
|
database,
|
|
8
8
|
normalizeMigrationCause
|
|
9
|
-
} from "./index-
|
|
9
|
+
} from "./index-qb715zhq.js";
|
|
10
10
|
import {
|
|
11
11
|
Dialect,
|
|
12
12
|
RuntimeMigrationError,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
fromDbTimestamp,
|
|
19
19
|
fromNullableDbTimestamp,
|
|
20
20
|
timestampParam
|
|
21
|
-
} from "./index-
|
|
21
|
+
} from "./index-5yz7nfkv.js";
|
|
22
22
|
import"./index-d5563j6w.js";
|
|
23
23
|
import {
|
|
24
24
|
exports_ids_schema
|
package/dist/sqlite.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import {
|
|
3
3
|
database,
|
|
4
4
|
normalizeMigrationCause
|
|
5
|
-
} from "./index-
|
|
5
|
+
} from "./index-qb715zhq.js";
|
|
6
6
|
import {
|
|
7
7
|
DatabaseAlreadyOwned,
|
|
8
8
|
HostUnavailable,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
make,
|
|
17
17
|
makeDatabaseIdentity,
|
|
18
18
|
runtimeLayer
|
|
19
|
-
} from "./index-
|
|
19
|
+
} from "./index-5yz7nfkv.js";
|
|
20
20
|
import"./index-d5563j6w.js";
|
|
21
21
|
import"./index-j8k41y47.js";
|
|
22
22
|
import"./index-nb39b5ae.js";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@relayfx/sdk",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.16",
|
|
5
5
|
"description": "Effect-native durable execution SDK for addressable agents and tools",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"exports": {
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"@effect/vitest": "4.0.0-beta.98",
|
|
77
77
|
"@relayfx/ai": "0.0.0",
|
|
78
78
|
"@relayfx/runtime": "0.0.0",
|
|
79
|
-
"@relayfx/schema": "0.7.
|
|
79
|
+
"@relayfx/schema": "0.7.16",
|
|
80
80
|
"@relayfx/store-sql": "0.0.0",
|
|
81
81
|
"@types/bun": "1.3.14",
|
|
82
82
|
"typescript": "7.0.2",
|