@relayfx/sdk 0.7.13 → 0.7.14

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.
@@ -8,7 +8,7 @@ import {
8
8
  SqlFailure,
9
9
  make,
10
10
  normalizeAcquisitionCause
11
- } from "./index-0fta2cfp.js";
11
+ } from "./index-xxxdmffr.js";
12
12
 
13
13
  // src/migration-errors.ts
14
14
  import { Cause, Effect, Function } from "effect";
@@ -15925,14 +15925,13 @@ var layer51 = Layer71.effect(Service61, Effect88.gen(function* () {
15925
15925
  return next;
15926
15926
  }).pipe(Effect88.andThen(Deferred2.succeed(done, undefined)))));
15927
15927
  }),
15928
- interrupt: Effect88.fn("ActiveExecutionRegistry.interrupt")(function* (executionId) {
15928
+ interruptAndAwait: Effect88.fn("ActiveExecutionRegistry.interruptAndAwait")(function* (executionId) {
15929
15929
  const entry = yield* Ref17.get(active).pipe(Effect88.map((entries) => entries.get(executionId)));
15930
- return entry === undefined ? false : yield* Deferred2.succeed(entry.signal, undefined);
15931
- }),
15932
- awaitQuiescent: Effect88.fn("ActiveExecutionRegistry.awaitQuiescent")(function* (executionId) {
15933
- const entry = yield* Ref17.get(active).pipe(Effect88.map((entries) => entries.get(executionId)));
15934
- if (entry !== undefined)
15935
- yield* Deferred2.await(entry.done);
15930
+ if (entry === undefined)
15931
+ return false;
15932
+ yield* Deferred2.succeed(entry.signal, undefined);
15933
+ yield* Deferred2.await(entry.done);
15934
+ return true;
15936
15935
  })
15937
15936
  });
15938
15937
  }));
@@ -16599,8 +16598,7 @@ var cancelChildExecution = Effect92.fn("ExecutionWorkflow.cancelChildExecution")
16599
16598
  yield* signalPreparedCancellation(prepared, cancelledAt);
16600
16599
  const activeExecutions = yield* Effect92.serviceOption(Service61);
16601
16600
  if (Option23.isSome(activeExecutions)) {
16602
- yield* activeExecutions.value.interrupt(executionId);
16603
- yield* activeExecutions.value.awaitQuiescent(executionId);
16601
+ yield* activeExecutions.value.interruptAndAwait(executionId);
16604
16602
  }
16605
16603
  });
16606
16604
  var cancelOpenChildren = Effect92.fn("ExecutionWorkflow.cancelOpenChildren")(function* (executionId, cancelledAt) {
@@ -17095,8 +17093,7 @@ var cancelRequest = Effect92.fn("ExecutionWorkflow.cancelRequest")(function* (in
17095
17093
  }
17096
17094
  yield* signalPreparedCancellation(prepared, input.cancelled_at);
17097
17095
  if (Option23.isSome(activeExecutions)) {
17098
- yield* activeExecutions.value.interrupt(prepared.record.id);
17099
- yield* activeExecutions.value.awaitQuiescent(prepared.record.id);
17096
+ yield* activeExecutions.value.interruptAndAwait(prepared.record.id);
17100
17097
  }
17101
17098
  yield* cancelOpenChildren(prepared.record.id, input.cancelled_at);
17102
17099
  const cancelled = yield* cancel4({
package/dist/index.js CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  exports_tool_runtime,
15
15
  exports_workflow_definition_host,
16
16
  makeDatabaseIdentity
17
- } from "./index-0fta2cfp.js";
17
+ } from "./index-xxxdmffr.js";
18
18
  import {
19
19
  exports_context_overflow,
20
20
  exports_model_registry
package/dist/mysql.js CHANGED
@@ -2,12 +2,12 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-fn3rdmbr.js";
5
+ } from "./index-2r9s4jst.js";
6
6
  import {
7
7
  MigratorError,
8
8
  RuntimeMigrationError,
9
9
  SqlFailure
10
- } from "./index-0fta2cfp.js";
10
+ } from "./index-xxxdmffr.js";
11
11
  import"./index-d5563j6w.js";
12
12
  import"./index-j8k41y47.js";
13
13
  import"./index-nb39b5ae.js";
package/dist/postgres.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-fn3rdmbr.js";
5
+ } from "./index-2r9s4jst.js";
6
6
  import {
7
7
  Dialect,
8
8
  RuntimeMigrationError,
@@ -14,7 +14,7 @@ import {
14
14
  fromDbTimestamp,
15
15
  fromNullableDbTimestamp,
16
16
  timestampParam
17
- } from "./index-0fta2cfp.js";
17
+ } from "./index-xxxdmffr.js";
18
18
  import"./index-d5563j6w.js";
19
19
  import {
20
20
  exports_ids_schema
package/dist/sqlite.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  database,
4
4
  normalizeMigrationCause
5
- } from "./index-fn3rdmbr.js";
5
+ } from "./index-2r9s4jst.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-0fta2cfp.js";
19
+ } from "./index-xxxdmffr.js";
20
20
  import"./index-d5563j6w.js";
21
21
  import"./index-j8k41y47.js";
22
22
  import"./index-nb39b5ae.js";
@@ -2,8 +2,7 @@ import { Ids } from "../../schema/index";
2
2
  import { Context, Effect, Layer } from "effect";
3
3
  export interface Interface {
4
4
  readonly run: <A, E, R>(executionId: Ids.ExecutionId, effect: Effect.Effect<A, E, R>) => Effect.Effect<A, E, R>;
5
- readonly interrupt: (executionId: Ids.ExecutionId) => Effect.Effect<boolean>;
6
- readonly awaitQuiescent: (executionId: Ids.ExecutionId) => Effect.Effect<void>;
5
+ readonly interruptAndAwait: (executionId: Ids.ExecutionId) => Effect.Effect<boolean>;
7
6
  }
8
7
  declare const Service_base: Context.ServiceClass<Service, "@relayfx/runtime/execution/active-execution-registry/Service", Interface>;
9
8
  export declare class Service extends Service_base {
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.13",
4
+ "version": "0.7.14",
5
5
  "description": "Effect-native durable execution SDK for addressable agents and tools",
6
6
  "type": "module",
7
7
  "exports": {
@@ -75,7 +75,7 @@
75
75
  "@effect/vitest": "4.0.0-beta.98",
76
76
  "@relayfx/ai": "0.0.0",
77
77
  "@relayfx/runtime": "0.0.0",
78
- "@relayfx/schema": "0.7.13",
78
+ "@relayfx/schema": "0.7.14",
79
79
  "@relayfx/store-sql": "0.0.0",
80
80
  "@types/bun": "1.3.14",
81
81
  "typescript": "7.0.2",