@relayfx/sdk 0.2.9 → 0.2.11

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/ai.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // @bun
2
- import"./index-2efzqcg2.js";
2
+ import"./index-tpwr0wmj.js";
3
3
  import {
4
4
  AiError,
5
5
  Chat,
@@ -34,7 +34,7 @@ import {
34
34
  exports_tool_executor,
35
35
  exports_tool_output,
36
36
  exports_turn_policy
37
- } from "./index-89vy9qm7.js";
37
+ } from "./index-fhqr1n44.js";
38
38
 
39
39
  // src/ai.ts
40
40
  var relayAiPackage = "@relayfx/sdk/ai";
@@ -14790,7 +14790,10 @@ var layer44 = Layer58.effect(Service44, Effect65.gen(function* () {
14790
14790
  ...override === undefined ? {} : { override }
14791
14791
  }).pipe(Effect65.mapError(mapChildRunError));
14792
14792
  }),
14793
- stream: (input) => eventLog.stream(input).pipe(Stream11.take(input.limit ?? 1000), Stream11.mapError((error5) => mapEventLogError4(error5)))
14793
+ stream: (input) => {
14794
+ const stream3 = eventLog.stream(input).pipe(Stream11.mapError((error5) => mapEventLogError4(error5)));
14795
+ return input.limit === undefined ? stream3 : stream3.pipe(Stream11.take(input.limit));
14796
+ }
14794
14797
  });
14795
14798
  }));
14796
14799
  var memoryLayer39 = layer44.pipe(Layer58.provide(layer39), Layer58.provide(exports_execution_repository.memoryLayer), Layer58.provide(exports_session_repository.memoryLayer), Layer58.provide(exports_child_execution_repository.memoryLayer), Layer58.provide(memoryLayer29), Layer58.provide(ShardingConfig.layer({ runnerAddress: Option21.none() })));
@@ -14889,7 +14892,7 @@ var TransferInput = Schema73.Struct({
14889
14892
  input: Schema73.optionalKey(Schema73.Array(exports_content_schema.Part))
14890
14893
  }).annotate({ identifier: "Relay.SpawnChildRunTool.TransferInput" });
14891
14894
  var ModelInput = Schema73.Struct({
14892
- preset_name: Schema73.optionalKey(Schema73.String),
14895
+ preset_name: Schema73.optionalKey(Schema73.NullOr(Schema73.String)),
14893
14896
  instructions: Schema73.optionalKey(Schema73.String),
14894
14897
  model: Schema73.optionalKey(Schema73.NullOr(Schema73.Struct({
14895
14898
  provider: Schema73.String,
@@ -14905,9 +14908,10 @@ var ModelTransferInput = Schema73.Struct({
14905
14908
  input: Schema73.optionalKey(Schema73.Array(Schema73.Struct({ type: Schema73.Literal("text"), text: Schema73.String })))
14906
14909
  });
14907
14910
  var normalizeModelInput = (input) => {
14908
- const { model, output_schema_ref: outputSchemaRef, ...rest } = input;
14911
+ const { preset_name: presetName, model, output_schema_ref: outputSchemaRef, ...rest } = input;
14909
14912
  return {
14910
14913
  ...rest,
14914
+ ...presetName === null || presetName === undefined ? {} : { preset_name: presetName },
14911
14915
  ...model === null || model === undefined ? {} : { model },
14912
14916
  ...outputSchemaRef === null || outputSchemaRef === undefined ? {} : { output_schema_ref: outputSchemaRef }
14913
14917
  };
@@ -48,7 +48,7 @@ import {
48
48
  exports_wait_service,
49
49
  exports_wait_signal,
50
50
  exports_workflow_definition_repository
51
- } from "./index-89vy9qm7.js";
51
+ } from "./index-fhqr1n44.js";
52
52
 
53
53
  // src/operation.ts
54
54
  var exports_operation = {};
@@ -2093,10 +2093,12 @@ var layerFromRuntime = Layer.effect(Service, Effect.gen(function* () {
2093
2093
  return coordinated.accepted;
2094
2094
  }),
2095
2095
  createChildFanOut: Effect.fn("Client.runtime.createChildFanOut")(function* (input) {
2096
- return yield* Option.match(childFanOutRuntime, {
2097
- onNone: () => childFanOuts.create(input),
2098
- onSome: (runtime) => runtime.create(input)
2099
- }).pipe(Effect.mapError(toClientError));
2096
+ if (Option.isNone(childFanOutRuntime)) {
2097
+ return yield* new ClientError({
2098
+ message: "Child fan-out runtime unavailable; provide ChildFanOutRuntime.Service to Client.layerFromRuntime"
2099
+ });
2100
+ }
2101
+ return yield* childFanOutRuntime.value.create(input).pipe(Effect.mapError(toClientError));
2100
2102
  }),
2101
2103
  cancelChildFanOut: Effect.fn("Client.runtime.cancelChildFanOut")(function* (input) {
2102
2104
  return yield* cancelFanOut(input);
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  __export,
4
4
  exports_model_registry
5
- } from "./index-89vy9qm7.js";
5
+ } from "./index-fhqr1n44.js";
6
6
 
7
7
  // ../ai/src/language-model/language-model-registration.ts
8
8
  var exports_language_model_registration = {};
package/dist/index.js CHANGED
@@ -1,13 +1,13 @@
1
1
  // @bun
2
2
  import {
3
3
  exports_language_model_registration
4
- } from "./index-2efzqcg2.js";
4
+ } from "./index-tpwr0wmj.js";
5
5
  import {
6
6
  Service,
7
7
  exports_client,
8
8
  exports_command,
9
9
  exports_operation
10
- } from "./index-gb18mkj2.js";
10
+ } from "./index-jg4xh3fx.js";
11
11
  import {
12
12
  Dialect,
13
13
  __export,
@@ -59,7 +59,7 @@ import {
59
59
  fromDbTimestamp,
60
60
  fromNullableDbTimestamp,
61
61
  timestampParam
62
- } from "./index-89vy9qm7.js";
62
+ } from "./index-fhqr1n44.js";
63
63
 
64
64
  // src/adapter-outbox.ts
65
65
  var exports_adapter_outbox = {};
package/dist/sqlite.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  exports_client,
4
4
  exports_operation
5
- } from "./index-gb18mkj2.js";
5
+ } from "./index-jg4xh3fx.js";
6
6
  import {
7
7
  __export,
8
8
  exports_activity_version_registry,
@@ -46,7 +46,7 @@ import {
46
46
  exports_wait_service,
47
47
  exports_workflow_definition_repository,
48
48
  exports_workflow_schema
49
- } from "./index-89vy9qm7.js";
49
+ } from "./index-fhqr1n44.js";
50
50
  // src/sqlite-runtime.ts
51
51
  var exports_sqlite_runtime = {};
52
52
  __export(exports_sqlite_runtime, {
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.2.9",
4
+ "version": "0.2.11",
5
5
  "description": "Effect-native durable execution SDK for addressable agents and tools",
6
6
  "type": "module",
7
7
  "exports": {