@relayfx/test 0.2.5 → 0.2.6
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 +9 -3
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -13634,11 +13634,11 @@ var TransferInput = Schema67.Struct({
|
|
|
13634
13634
|
var ModelInput = Schema67.Struct({
|
|
13635
13635
|
preset_name: Schema67.optionalKey(Schema67.String),
|
|
13636
13636
|
instructions: Schema67.optionalKey(Schema67.String),
|
|
13637
|
-
model: Schema67.optionalKey(Schema67.Struct({
|
|
13637
|
+
model: Schema67.optionalKey(Schema67.NullOr(Schema67.Struct({
|
|
13638
13638
|
provider: Schema67.String,
|
|
13639
13639
|
model: Schema67.String,
|
|
13640
13640
|
registration_key: Schema67.optionalKey(Schema67.String)
|
|
13641
|
-
})),
|
|
13641
|
+
}))),
|
|
13642
13642
|
tool_names: Schema67.optionalKey(Schema67.Array(Schema67.String)),
|
|
13643
13643
|
permissions: Schema67.optionalKey(Schema67.Array(Schema67.String)),
|
|
13644
13644
|
output_schema_ref: Schema67.optionalKey(Schema67.String),
|
|
@@ -13648,6 +13648,12 @@ var ModelInput = Schema67.Struct({
|
|
|
13648
13648
|
var ModelTransferInput = Schema67.Struct({
|
|
13649
13649
|
input: Schema67.optionalKey(Schema67.Array(Schema67.Struct({ type: Schema67.Literal("text"), text: Schema67.String })))
|
|
13650
13650
|
});
|
|
13651
|
+
var normalizeModelInput = (input) => {
|
|
13652
|
+
if (input.model !== null)
|
|
13653
|
+
return input;
|
|
13654
|
+
const { model: _, ...normalized } = input;
|
|
13655
|
+
return normalized;
|
|
13656
|
+
};
|
|
13651
13657
|
var enabled = (agent) => agent.metadata?.multi_agent_enabled === true;
|
|
13652
13658
|
var parentContext = (agent) => ({
|
|
13653
13659
|
...agent.instructions === undefined ? {} : { instructions: agent.instructions },
|
|
@@ -13816,7 +13822,7 @@ var registeredTool = (config) => tool(toolName, {
|
|
|
13816
13822
|
permissions: [{ name: permissionName, value: true }],
|
|
13817
13823
|
requiredPermissions: [permissionName],
|
|
13818
13824
|
metadata: { relay_core_tool: true },
|
|
13819
|
-
run: (input, context) => Schema67.decodeUnknownEffect(Input)(input).pipe(Effect59.flatMap((decoded) => run2(config, toolName, decoded, context, true)))
|
|
13825
|
+
run: (input, context) => Schema67.decodeUnknownEffect(Input)(normalizeModelInput(input)).pipe(Effect59.flatMap((decoded) => run2(config, toolName, decoded, context, true)))
|
|
13820
13826
|
});
|
|
13821
13827
|
var transferToolName2 = (name) => `transfer_to_${name.trim().toLowerCase().replaceAll(/[^a-z0-9]+/g, "_").replaceAll(/^_+|_+$/g, "")}`;
|
|
13822
13828
|
var transferTools = (config) => (config.agent.handoff_targets ?? []).map((target) => {
|
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.6",
|
|
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.6",
|
|
40
40
|
"effect": "4.0.0-beta.93"
|
|
41
41
|
},
|
|
42
42
|
"peerDependencies": {
|