@relayfx/test 0.2.8 → 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.
- package/dist/index.js +7 -4
- 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,
|
|
@@ -13625,16 +13625,16 @@ var ModelInput = Schema65.Struct({
|
|
|
13625
13625
|
tool_names: Schema65.optionalKey(Schema65.Array(Schema65.String)),
|
|
13626
13626
|
permissions: Schema65.optionalKey(Schema65.Array(Schema65.String)),
|
|
13627
13627
|
output_schema_ref: Schema65.optionalKey(Schema65.NullOr(Schema65.String)),
|
|
13628
|
-
metadata: Schema65.optionalKey(Schema65.Record(Schema65.String, Schema65.String)),
|
|
13629
13628
|
input: Schema65.optionalKey(Schema65.Array(Schema65.Struct({ type: Schema65.Literal("text"), text: Schema65.String })))
|
|
13630
13629
|
});
|
|
13631
13630
|
var ModelTransferInput = Schema65.Struct({
|
|
13632
13631
|
input: Schema65.optionalKey(Schema65.Array(Schema65.Struct({ type: Schema65.Literal("text"), text: Schema65.String })))
|
|
13633
13632
|
});
|
|
13634
13633
|
var normalizeModelInput = (input) => {
|
|
13635
|
-
const { model, output_schema_ref: outputSchemaRef, ...rest } = input;
|
|
13634
|
+
const { preset_name: presetName, model, output_schema_ref: outputSchemaRef, ...rest } = input;
|
|
13636
13635
|
return {
|
|
13637
13636
|
...rest,
|
|
13637
|
+
...presetName === null || presetName === undefined ? {} : { preset_name: presetName },
|
|
13638
13638
|
...model === null || model === undefined ? {} : { model },
|
|
13639
13639
|
...outputSchemaRef === null || outputSchemaRef === undefined ? {} : { output_schema_ref: outputSchemaRef }
|
|
13640
13640
|
};
|
|
@@ -15259,7 +15259,10 @@ var layer47 = Layer63.effect(Service49, Effect69.gen(function* () {
|
|
|
15259
15259
|
...override === undefined ? {} : { override }
|
|
15260
15260
|
}).pipe(Effect69.mapError(mapChildRunError2));
|
|
15261
15261
|
}),
|
|
15262
|
-
stream: (input) =>
|
|
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
|
+
}
|
|
15263
15266
|
});
|
|
15264
15267
|
}));
|
|
15265
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.
|
|
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.
|
|
39
|
+
"@relayfx/sdk": "0.2.10",
|
|
40
40
|
"effect": "4.0.0-beta.93"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|