@relayfx/test 0.2.7 → 0.2.8

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 -5
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -13624,7 +13624,7 @@ var ModelInput = Schema65.Struct({
13624
13624
  }))),
13625
13625
  tool_names: Schema65.optionalKey(Schema65.Array(Schema65.String)),
13626
13626
  permissions: Schema65.optionalKey(Schema65.Array(Schema65.String)),
13627
- output_schema_ref: Schema65.optionalKey(Schema65.String),
13627
+ output_schema_ref: Schema65.optionalKey(Schema65.NullOr(Schema65.String)),
13628
13628
  metadata: Schema65.optionalKey(Schema65.Record(Schema65.String, Schema65.String)),
13629
13629
  input: Schema65.optionalKey(Schema65.Array(Schema65.Struct({ type: Schema65.Literal("text"), text: Schema65.String })))
13630
13630
  });
@@ -13632,10 +13632,12 @@ var ModelTransferInput = Schema65.Struct({
13632
13632
  input: Schema65.optionalKey(Schema65.Array(Schema65.Struct({ type: Schema65.Literal("text"), text: Schema65.String })))
13633
13633
  });
13634
13634
  var normalizeModelInput = (input) => {
13635
- if (input.model !== null)
13636
- return input;
13637
- const { model: _, ...normalized } = input;
13638
- return normalized;
13635
+ const { model, output_schema_ref: outputSchemaRef, ...rest } = input;
13636
+ return {
13637
+ ...rest,
13638
+ ...model === null || model === undefined ? {} : { model },
13639
+ ...outputSchemaRef === null || outputSchemaRef === undefined ? {} : { output_schema_ref: outputSchemaRef }
13640
+ };
13639
13641
  };
13640
13642
  var enabled = (agent) => agent.metadata?.multi_agent_enabled === true;
13641
13643
  var parentContext = (agent) => ({
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.7",
4
+ "version": "0.2.8",
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.7",
39
+ "@relayfx/sdk": "0.2.8",
40
40
  "effect": "4.0.0-beta.93"
41
41
  },
42
42
  "peerDependencies": {