@relayfx/test 0.2.9 → 0.2.10

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.
Files changed (2) hide show
  1. package/dist/index.js +7 -3
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -13615,7 +13615,7 @@ var TransferInput = Schema65.Struct({
13615
13615
  input: Schema65.optionalKey(Schema65.Array(exports_content_schema.Part))
13616
13616
  }).annotate({ identifier: "Relay.SpawnChildRunTool.TransferInput" });
13617
13617
  var ModelInput = Schema65.Struct({
13618
- preset_name: Schema65.optionalKey(Schema65.String),
13618
+ preset_name: Schema65.optionalKey(Schema65.NullOr(Schema65.String)),
13619
13619
  instructions: Schema65.optionalKey(Schema65.String),
13620
13620
  model: Schema65.optionalKey(Schema65.NullOr(Schema65.Struct({
13621
13621
  provider: Schema65.String,
@@ -13631,9 +13631,10 @@ var ModelTransferInput = Schema65.Struct({
13631
13631
  input: Schema65.optionalKey(Schema65.Array(Schema65.Struct({ type: Schema65.Literal("text"), text: Schema65.String })))
13632
13632
  });
13633
13633
  var normalizeModelInput = (input) => {
13634
- const { model, output_schema_ref: outputSchemaRef, ...rest } = input;
13634
+ const { preset_name: presetName, model, output_schema_ref: outputSchemaRef, ...rest } = input;
13635
13635
  return {
13636
13636
  ...rest,
13637
+ ...presetName === null || presetName === undefined ? {} : { preset_name: presetName },
13637
13638
  ...model === null || model === undefined ? {} : { model },
13638
13639
  ...outputSchemaRef === null || outputSchemaRef === undefined ? {} : { output_schema_ref: outputSchemaRef }
13639
13640
  };
@@ -15258,7 +15259,10 @@ var layer47 = Layer63.effect(Service49, Effect69.gen(function* () {
15258
15259
  ...override === undefined ? {} : { override }
15259
15260
  }).pipe(Effect69.mapError(mapChildRunError2));
15260
15261
  }),
15261
- stream: (input) => eventLog.stream(input).pipe(Stream11.take(input.limit ?? 1000), Stream11.mapError((error5) => mapEventLogError4(error5)))
15262
+ stream: (input) => {
15263
+ const stream2 = eventLog.stream(input).pipe(Stream11.mapError((error5) => mapEventLogError4(error5)));
15264
+ return input.limit === undefined ? stream2 : stream2.pipe(Stream11.take(input.limit));
15265
+ }
15262
15266
  });
15263
15267
  }));
15264
15268
  var memoryLayer39 = layer47.pipe(Layer63.provide(layer39), Layer63.provide(exports_execution_repository.memoryLayer), Layer63.provide(exports_session_repository.memoryLayer), Layer63.provide(exports_child_execution_repository.memoryLayer), Layer63.provide(memoryLayer28), Layer63.provide(ShardingConfig.layer({ runnerAddress: Option21.none() })));
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package.json",
3
3
  "name": "@relayfx/test",
4
- "version": "0.2.9",
4
+ "version": "0.2.10",
5
5
  "description": "Experimental deterministic test kit for Relay applications",
6
6
  "type": "module",
7
7
  "exports": {
@@ -36,7 +36,7 @@
36
36
  "typecheck": "bun tsc --noEmit"
37
37
  },
38
38
  "dependencies": {
39
- "@relayfx/sdk": "0.2.9",
39
+ "@relayfx/sdk": "0.2.10",
40
40
  "effect": "4.0.0-beta.93"
41
41
  },
42
42
  "peerDependencies": {